04-13-2012 09:53 AM
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.
04-13-2012 10:06 AM
You are referencing the variables BEFORE they are defined.
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.