within testit macro i want macro variables to be resolved and the outfile name to be generated as sasuser05AUG11_Test's one way to force the resolution is to use %unquote , %unquote works if the oname does not contain the single quote Any suggestions to make it work with oname having single quote or any other quoted character as well ? %macro testit(outputlocation, outputname); %let outfile=&outputlocation/&outputname; %put &outfile; %mend; %let _metauser=sasuser; %let oname=%str(&)_metauser.%str(&)SYSDATE._Test%str(%')s; %put This is how values are passed into the stored process: &oname; %let oloc=c:\mysas; %testit(&oloc, &oname);
... View more