Date: Fri, 10 Mar 2000 10:21:37 -0500
Reply-To: DOUG CONRAD <dconrad@CICINFO.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: DOUG CONRAD <dconrad@CICINFO.COM>
Subject: Using Operators In %macros
Content-Type: text/plain; charset="iso-8859-1"
Hi all,
Can I use the 'and' 'in' 'not' 'or' operators in %macros?
Say I have these possible macro resolutions: YES yes YeS yeS and I want to
evaluate each expression collectively and move forward:
I.E :
%if &yesno IN (YES yes YeS yeS) %then %do;
more code ......
%end;
OR should i do something like this:
%if %upcase(&yesno)=YES then %do;
more code....
%end;
Maybe I answered my own question.
But I'm just not sure about operator usage in the macro language
Thanks.