Date: Fri, 7 Aug 1998 10:45:14 -0700
Sender: "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From: Jason Jones <jjones@VNUSINFO.COM>
Subject: Re: SPSS DATE
Content-Type: text/plain; charset="iso-8859-1"
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
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.
VNUS Information Services
> -----Original Message-----
> From: SAS(r) Discussion
> [mailto:SAS-L@UGA.CC.UGA.EDU]On Behalf Of
> 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
> 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.