LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (August 2002, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Tue, 13 Aug 2002 13:30:02 -0700
Reply-To:     Melanie <MelliJ@AOL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Melanie <MelliJ@AOL.COM>
Organization: http://groups.google.com/
Subject:      IF - THEN processing in MACRO
Content-Type: text/plain; charset=ISO-8859-1

Hello all,

I recently took the SAS Macro course and am now trying to apply what I have learned. Here is the snag I have come across:

I am doing conditional IF-THEN processing. I know that I have to use the following syntax:

%IF <condtion> %THEN %DO;

However, if I have multiple conditions like this:

%IF ht < 121 or ht > 230 %THEN %DO;,

I am not getting the correct answer when ht = 156. I have the symbolgen option turned on, and it is telling me that my condition is true. I tried %OR, but that is not a valid statement. Is it impossible to do, maybe?

Thanks,

Melanie Barish Clinical Programmer Analyst Progenics Pharmaceuticals, Inc. mbarish@progenics.com


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