I'm new to macro coding. I'm trying to check a previously-set global variable to see it I want to merge two datasets or just SET to a single one. Here's the code from SYSLOG: 228 DATA NT180 NTONL180 NTZZCHK BOTHBAD WINONLY RACFONLY ; SYMBOLGEN: Macro variable NTON resolves to no 229 if &nton = no then do ; 230 set work.merged ; 231 end ; SYMBOLGEN: Macro variable NTON resolves to no 232 if &nton = yes then do ; 233 MERGE MERGED(IN=RACFIN) NTSIGNON(IN=NTIN) ; ERROR: File WORK.NTSIGNON.DATA does not exist. 234 BY RACFID ; 235 end ; My problem is with the MERGE stmt being looked at. I would think it wouldn't be since the &nton = yes will not be true. I'm guessing there's something basic to explain this, but I haven't been able to find it (currently rereading the SAS Macro manual). P.S. SAS 9.3 on z/OS 1.13
... View more