Date: Sat, 1 Apr 2000 05:07:04 GMT
Reply-To: Shan <sputnam@EIS.COM.EG>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Shan <sputnam@EIS.COM.EG>
Organization: Deja.com - Before you buy.
Subject: sub-setting by date format
I have a quick question about date formats
I have a yymmdd2. format that pulls the 'year' off.
I want to sub-set a dataset by a specific year. Something like this:
if year=99 then do;
.
.
.
end;
I've tried substr(var,1,2), but no good.
but it doesn't seem to work - any thoughts?
shan
Sent via Deja.com http://www.deja.com/
Before you buy.
|