Date: Wed, 10 Feb 1999 09:24:15 -0600
Reply-To: King Douglas <King_Douglas@AMRCORP.COM>
Sender: "SPSSX(r) Discussion" <SPSSX-L@UGA.CC.UGA.EDU>
From: King Douglas <King_Douglas@AMRCORP.COM>
Subject: Analyst needs date :)
Hey, list members.
I usually avoid working with "dates" in SPSS
because they are often problematic. I convert
dates to strings or numbers (as days, months,
years), and recombine them, if and when necessary,
into a date variable. It is necessary in this
What I want to do is add many SPSS date values
(e.g., 01/23/1999) depending on the value of
another (string) variable using something like DO
REPEAT (I already know this doesn't work--it's
just an example).
P = "string1" "string2" "string3"
/Q = 1/23/1999 1/24/1999 1/25/1999.
DO IF strval= P.
COMPUTE dateval = Q.
END REPEAT PRINT.
If you know how to do this kind of thing with SPSS
date values, lay it on me! TIA