TASS Meeting Quickly Finding Project Code March 13th, 2009 A way to quickly find all of your project code Dr. Arthur Tabachneck Director, Data Management
TASS Meeting Quickly Finding Project Code March 13th, 2009 My Window’s Desktop
TASS Meeting Quickly Finding Project Code March 13th, 2009 from window’s explorer right click on project folder
TASS Meeting Quickly Finding Project Code March 13th, 2009 then, to access any project folder from SAS
TASS Meeting Quickly Finding Project Code March 13th, 2009 from there, select the program you want to work with
TASS Meeting Quickly Finding Project Code March 13th, 2009 to change projects, just repeat the last two steps
TASS Meeting Quickly Finding Project Code March 13th, 2009 Extra Benefits works from multiple instances of SAS doesn’t require any add-ins is totally managed by you
TASS Meeting Quickly Finding Project Code March 13th, 2009 Extra Benefit #4: Automatically assign libname %global path4sas; %macro setspath; %let path4sas = 'C:\My Documents\My SAS Files\V8'; data srt999; set sashelp.vextfl; if (substr(fileref,1,3)="#LN" and upcase(substr(reverse(trim(left(xpath))),1,3))="SAS" and upcase(substr(reverse(trim(left(xpath))),5,8))^="SAS4HTAP"); run; proc sort data=srt999; by descending fileref; run; data _null_; set srt999(obs=1); a=reverse(trim(left(xpath))); b='\'; c=index(a,b); path4sas=reverse(substr(reverse(trim(left(xpath))),c)); call symput('path4sas', trim(left(lowcase(path4sas)))); run; libname datapath "&path4sas."; %mend setspath ; %setspath data test; set datapath.test; run;
TASS Meeting Quickly Finding Project Code March 13th, 2009 Questions? Your comments and questions are valued and encouraged. Contact the author: Dr. Arthur Tabachneck Director, Data Management Insurance Bureau of Canada Toronto, Ontario L3T 5K9