You really need to learn how to use the SAS documentation!
https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/mcrolref/p1nypovnwon4uyn159rst8pgzqrl.htm
If you DEFINE a macro name MYMACRO with a statement like:
%macro mymacro(source, file,ID);
Then the macro's parameters ( SOURCE, FILE and ID) will all be LOCAL macro variables.
Try it:
943 %macro mymacro(source, file,ID); 944 %put _local_; 945 %mend mymacro; 946 %mymacro; MYMACRO FILE MYMACRO ID MYMACRO SOURCE
@HeatherNewton wrote:
dont see a statement declarinf source as macro variable..
Variables and macro variables do not have to be declared in SAS.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.