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 (August 1998, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Fri, 7 Aug 1998 10:45:14 -0700
Reply-To:     jjones@vnusinfo.com
Sender:       "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From:         Jason Jones <jjones@VNUSINFO.COM>
Subject:      Re: SPSS DATE
Comments: To: davidwu72@hotmail.com
In-Reply-To:  <35CB34B2.26BB@hotmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Wei, I don't have SPSS so I may be totally off the mark on this one, but it may just be that you need to apply a format to view the date correctly. If this is all that is needed, perhaps you can try inserting something like the following line into the DATA step that generates the dataset you're concerned about:

FORMAT datevar mmddyy10.;

Where "datevar" is the name of the variable that you want to be a date.

The reason I think this might work is because you said that you are currently seeing numerical data. To me, this means that SAS was able to convert what would probably have been some sort of non-numeric data (i.e., something that contained "/" or "Jan" or something like that) to a number. If I have been of no help, perhaps you could send a sample of your code for starters.

Jason

Jason Jones VNUS Information Services 213.924.3111 http://www.vnusinfo.com

> -----Original Message----- > From: SAS(r) Discussion > [mailto:SAS-L@UGA.CC.UGA.EDU]On Behalf Of > davidwu72 > Sent: Friday, August 07, 1998 10:09 AM > To: SAS-L@UGA.CC.UGA.EDU > Subject: SPSS DATE > > > Hi, SAS-Lers: > > Please help me with this question. I am conveting > a SPSS dataset into > SAS > data, everything works fine except the date. > Since SPSS use different > baseline to calculate the date than SAS, all of > my SPSS date were > converted into numerica numbers which can't be > correctly identified by > SAS. So, MY QUESTION IS : how to convert SPSS > date into SAS date? > > Truly appreciate for any help. > > > Wei >


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