/ Published in: SAS
URL: http://studysas.blogspot.com/2009/08/macro-in-operator.html
Have you ever come across a situation where you have to write a macro program where a macro variable has more than one value? Writing a macro program in this case involves so many different conditions and to connect each condition you generally use OR operator as below…
%macro test; %if &dsn=ae or %if &dsn=ds or %if &dsn=co or %if &dsn=cm %then %do; Some---SAS—Statements; %end; %test;
Expand |
Embed | Plain Text
Have you ever come across a situation where you have to write a macro program where a macro variable has more than one value? Writing a macro program in this case involves so many different conditions and to connect each condition you generally use OR operator as below… %macro test; %if &dsn=ae or %if &dsn=ds or %if &dsn=co or %if &dsn=cm %then %do; Some---SAS—Statements; %end; %test; Read more at: http://studysas.blogspot.com/2009/08/macro-in-operator.html
You need to login to post a comment.
