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 (November 2007, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Tue, 27 Nov 2007 11:38:07 -0500
Reply-To:     Paul Walker <walker.627@OSU.EDU>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Paul Walker <walker.627@OSU.EDU>
Subject:      SAS Puzzle: Evaluating Logic in a Character Field

I have a one-column dataset of the following form:

Logic ------- 0<0.9<1 0<15 0<1.3<1

I would like to append a numeric 0/1 flag to this dataset which indicates whether the expression contained in the column "Logic" is true (=1) or false (=0).

Logic Flag ------- ------ 0<0.9<1 1 0<15 1 0<1.3<1 0

Does anyone know how to do this?

TIA, Paul


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