Hello community, I am a Marco beginner and trying to create a macro variable with 3 positional parameters. The purpose for doing so is to only change positional parameters then manage different datasets. Here is the SAS code: %macro dentalproc(vars1,vars2,vars3); /*create a marco with 3 positional parameters*/
data dnt_&vars1_1;/* 1st parameter used here to create a new dataset*/
set dnt_pnl.h&vars2;/* 2nd parameter used here to call an existing dataset*/
if panel ^=13 then delete;
run;
data dnt_&vars1_2;/* 1st parameter used here to create a new dataset with a different name*/
set dnt_pnl.h&vars3;/* 3rd parameter used here to call another existing dataset*/
if panel ^=13 then delete;
run;
%mend dentalproc;
%dentalproc(p14,126b,135b) However, I keep receiving ERROR 22-322 when I ran this code. ERROR 22-322: Syntax error, expecting one of the following: a name, a quoted string, (, /, ;, _DATA_, _LAST_, _NULL_. ERROR 200-322: The symbol is not recognized and will be ignored. Please, kindly advice the solutions. Thanks for your time and support!
... View more