09-21-2016 06:46 AM
I am struggling with macros. I have four folders having marco code in .sas file. Folder names are folder1, folder2, folder3, folder4.
I want to make macros present in these folder available in my session. I written below mentioned code. Please suggest
filename MYMACROS( 'C:\folder1', 'C:\folder2', 'C:\folder3', 'C:\folder4' ); option APPEND=SASAUTOS= (,MYMACROS);
09-21-2016 07:19 AM
As mutch as know there is no option APPEND;
I think you mean to:
options sasautos=(sashelp.sasmacrs , my macros);
%let mymacros = 'C:\folder1', 'C:\folder2', 'C:\folder3', 'C:\folder4' ;
options sasautos = (sashelp.sasmacros, &mymacros);
I didn't check it, but try those two. In case of errors I'll try to help more.
09-22-2016 04:56 AM - edited 09-22-2016 04:57 AM
Enter new SAS seesion and run PROC OPTIONS; RUN;
Locate SASAUTOS= in log and remeber it for comparison.
filename mymacros '... enter path to your saved macros ...';
options sasautos = (mymacros, sasautos);
PROC OPTIONS; RUN;
No locate again SASAUTOS= in log and compare it to previous one.
You will find the difference.
I got, on second run: SASAUTOS = (mymacros, sasautos);
09-27-2016 07:47 AM
What does your program contain that in any way adds your four folders to SASAUTOS?
PROC OPTIONS shows whether you have been successful or not, but it doesn't change anything.
Need further help from the community? Please ask a new question.