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 1999, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Fri, 19 Nov 1999 07:08:12 -0500
Reply-To:     Minsup Song <msong@SYR.EDU>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Minsup Song <msong@SYR.EDU>
Subject:      Simple Date Problem

Dear

Hello. I have a simple(?) problem. In the data set, there are date (year) variable. For example,

OBS Date 1 1970 2 1971 3 1973 ... ...

I would like to extract some observation by Date. For example, I would like to extract observation of which date is 1971. But unfortunately, when I enter the command as below,

Data temp; Set Above; If Date=1970; Run;

Then, there is no observation. I find out why. The date is formatted by the date of 1960. 1.1. For example, when I give the range like below,

Proc Print Data=Temp; Where 3000<=Date<=5000; Run;

I can see observations of which date is about 1970s. How can I treat this variable? Can I use the Date variable more easily?

Thank you.


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