0

i am trying to write a simple macro statement. Essentially, I want to tell the program, if MIC ^= the macroname (German) then delete. But sas treat my code as if MIC ^= '&mfile' then delete. Can anyone teach me how to refer to the macro name in this case please.

%macro match(mfile);
data TEMP; set abc; if MIC ^='&mfile' then delete; run;
%mend match;
%match(German);
fly36
  • 513
  • 2
  • 6
  • 23

1 Answers1

0

Macro variable references that are enclosed in single quotation marks are not resolved, you need to use double quotation.

See Sas documentation for more info

kristof
  • 52,923
  • 24
  • 87
  • 110