Date: Wed, 22 Oct 2003 14:40:20 -0700
Reply-To: Prasad S Ravi <prasad.s.ravi@HOUSEHOLD.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Prasad S Ravi <prasad.s.ravi@HOUSEHOLD.COM>
Subject: Re: if str_mo not in ('','.') and str_da not in ('','.') and
str_yy not in ('','.') Any shorter ?
Content-type: text/plain; charset=us-ascii
OR
you could use ARRAY
data new;
set old;
array igor $ (*) str_mo str_da str_yr;
do over igor;
if igor ~in (' ','.') then do;
end;
run;
Prasad Ravi
Igor Kurbeko
<ikurbeko@ATHEROGENIC To: SAS-L@LISTSERV.UGA.EDU
S.COM> cc:
Sent by: "SAS(r) Subject: if str_mo not in ('','.') and str_da not in ('','.') and str_yy
Discussion" not in ('','.') Any shorter ?
<SAS-L@LISTSERV.UGA.E
DU>
10/22/2003 02:13 PM
Please respond to
Igor Kurbeko
Hi, there.
I'm just curious if it ever dawned on anybody how to abbreviate this
line :
if str_mo not in ('','.') and str_da not in ('','.') and str_yy not in
('','.')
Igor Kurbeko
Clinical Programmer Analyst
678 336 4328
ikurbeko@atherogenics.com
no brain no pain
|