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
|