Posted By

sarathannapareddy on 08/16/09


Tagged

character option system macro operator in Mnemonic MINOPERATOR


Versions (?)

Macro IN Operator


 / 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;

  1. 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…
  2.  
  3. %macro test;
  4. %if &dsn=ae or %if &dsn=ds or %if &dsn=co or %if &dsn=cm %then %do;
  5. Some---SAS—Statements;
  6. %end;
  7. %test;
  8.  
  9. Read more at: http://studysas.blogspot.com/2009/08/macro-in-operator.html

Report this snippet  

You need to login to post a comment.