Date: Wed, 21 Jul 2010 10:15:50 -0500
Reply-To: "Marks, Jim" <Jim.Marks@lodgenet.com>
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: "Marks, Jim" <Jim.Marks@lodgenet.com>
Subject: Re: SYSMIS
The structure is
For string variable
IF LEN(RTRIM(string) = 0...
SPSS strings are padded with blanks to fill the defined length: If a
variable is defined as A5, then the actual variables will be:
'i____' (4 space "characters" replaced with underscore)
'am___' (3 space "characters" replaced with underscore )
'ready' (0 space "characters" replaced with underscore )
Director, Market Research
From: SPSSX(r) Discussion [mailto:SPSSX-L@LISTSERV.UGA.EDU] On Behalf Of
Sent: Wednesday, July 21, 2010 9:53 AM
I'd like to compute a new variable funktion using IF-Commands. One
possible condition is, that the value is equal to System Missing.
IF(anstellungsgrad_lp = 0 OR anstellungsgrad_lp EQ Sysmis AND
anstellungsgrad_sl GT 0) funktion = 1.
PASW 18.0 doesn't accept this writing.Probably it won't help to treat
Sysmis as String like 'sysmis' because there's no string...
But there are cases with Sysmis in the variable anstellungsgrad_lp,
which I want to include. What can I do?
Thanks for any hint.