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 (February 1999)Back to main SPSSX-L pageJoin or leave SPSSX-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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 :)
Content-Type: text/plain

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 case.

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).

DO REPEAT P = "string1" "string2" "string3" /Q = 1/23/1999 1/24/1999 1/25/1999. DO IF strval= P. COMPUTE dateval = Q. END IF. END REPEAT PRINT. EXECUTE.

If you know how to do this kind of thing with SPSS date values, lay it on me! TIA

King Douglas


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