I'm invoking a macro which involves some macro vars that appear within quoted text strings (i.e., filenames of pdfs & titles within those pdfs.) SAS log gives several 'Apparent symbolic ref... not resolved.' Yet, the referenced filenames & titles appear to have correctly resolved. Any thoughts on why I'm getting warnings? code e.g.:
ClusPDFtitle="CLUSward&LEV._®SUB.Range.PDF"-- &LEV and ®SUB are the macros.
I've attached to macro definition (REGpairROA_CLUSTER.sas) file and the macro call (macroWARNING_invocationEG) in case it helps.
Thank you,
KDA
You are referencing the variables BEFORE they are defined.
%LET LEV=01;
%REGpairROA_CLUSTER
(inputDATASET=K08.gHGUid_54613_PAIRanvaANO_c041012
,regSUBSET=C4p05sig
,ClustPDFtitle="CLUSTERwardLEV&LEV._®SUBSET.RANGEofAVGsCLUSTERS.PDF"
...
For example you are trying to use the value of the parameter REGSUBSET in the definition of the parameter CLUSTPDFTITLE.
You can either move that value out into an existing macro variable and use it everywhere it is needed (as you did with the macro variable LEV) or you could try using %NRSTR() macro function to tell SAS not to try to resolve ®SUBSET during the macro call.
Please disregard post. I've resolved the issue for now.
Thanks, KDA
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.