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 1997)Back to main SPSSX-L pageJoin or leave SPSSX-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Wed, 19 Feb 1997 12:57:54 +1000
Reply-To:   Michael McStephen <PSYMDM@LURE.LATROBE.EDU.AU>
Sender:   "SPSSX(r) Discussion" <SPSSX-L@UGA.CC.UGA.EDU>
From:   Michael McStephen <PSYMDM@LURE.LATROBE.EDU.AU>
Subject:   using $date in spss 6.1.4 for Win
Content-type:   TEXT/PLAIN; CHARSET=US-ASCII

Hi,

I'm trying to use the system date variable $date to compute current ages of subjects. The version of SPSS I'm using is 6.1.4 for Windows. The syntax I'm trying to use is:

compute age = $date - dob. execute.

where dob is a variable with the format dd-mmm-yyyy.

This is not working and I get the message that one of my operands is not numeric. I understood that $date had the format dd-mmm-yyyy by default.

The above syntax works fine using another dd-mmm-yyyy variable instead of $date.

Any suggestions?

Thanks,

Michael.


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