In the following code, I want the macro variable _SOURCE_CD to resolve it as missing. Also I don't wish explicitly create that macro variable with missing before I call this macro variable. Could you please help me to resolve this?
%let _LEGAL_CD=RMN;
data l;
lel=compress(COALESCEC("&_SOURCE_CD.","&_LEGAL_CD."));
call symput('lel',lel);
run;
Log:
26 %let _LEGAL_CD=RMN;
27
28
29 data l;
30 lel=compress(COALESCEC("&_SOURCE_CD.","&_LEGAL_CD."));
WARNING: Apparent symbolic reference _SOURCE_CD not resolved.
SYMBOLGEN: Macro variable _LEGAL_CD resolves to RMN
31 call symput('lel',lel);
32 run;
NOTE: The data set WORK.L has 1 observations and 1 variables.
Output:
lel
&_SOURCE_CD.
Desired Output:
lel
RMN
... View more