Hello, I have defined a proc format and a macro which looks for example like below. I want myfolder on my gpath to be replaced with the defined formats. For example format &myfolder $folder.; proc format library = ft;
value $folder
'foldernameA'= 'foldername A containing books'
'foldernameB'= 'foldernameB containing pencils'
;
run;
%macro gdesign (myfie, myfolder);
***********some sas codes*****************;
ods listing gpath= "C:\graphs\&myfolder ";
***********some sas codes*****************;
%mend gdesign; %gdesign(folder1,foldernameA); %gdesign(folder1, foldernameB); If I place this on the gpath ( like this: ods listing gpath= "C:\graphs\format &myfolder $folder. "; ) I get an error Is there any way to do that?
... View more