LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (September 2010, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Mon, 20 Sep 2010 15:59:20 -0700
Reply-To:   Arthur Tabachneck <art297@NETSCAPE.NET>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Arthur Tabachneck <art297@NETSCAPE.NET>
Subject:   Re: using 'NOT' in %EVAL
Content-Type:   text/plain; charset=ISO-8859-1

Theo,

You can if you enclose it in parentheses. E.g.,

IF %EVAL(&obs_value. not(gt 100000)) %THEN %DO;

Art ------------- On Sep 20, 6:08 pm, theorbo <theo...@gmail.com> wrote: > On Sep 20, 5:52 pm, Patrick <patrick.mat...@gmx.ch> wrote: > > > You could code: > > > %IF &obs_value LE 100000 %THEN %DO; > > > or > > > %IF NOT (&obs_value GT 100000) %THEN %DO; > > > or > > > %IF NOT %EVAL(&obs_value gt 100000) %THEN %DO; > > Thanks, Patrick. I wonder why you can't use 'NOT' within the %EVAL > expression?


Back to: Top of message | Previous page | Main SAS-L page