undocumented syntax

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

undocumented syntax

wsu_wright
I was checking a student's syntax the other day & came across some syntax I never saw before, was about to mark it incorrect when I noticed it had worked!  Both syntaxes concern recoding sysmis values:

RECODE V1 (misval=5).
RECODE V2 (sys mis=4).

*note the space between sys & mis.

I have not found in the syntax reference guide the use of "misval" or "sys mis" before, anybody seen this before?


David
Reply | Threaded
Open this post in threaded view
|

Re: undocumented syntax

Spousta Jan
Hi David,

The bad message is thet even

RECODE V2 (systemEngineer misCalculated=4).

would have worked well.

The good message is that SPSS reads usually only first 3 or 4 letters of
keywords and usually ignores the rest. Lazy people (for example myself)
use this often and do not type the rests of keywords. But some other
people (like our students) can misuse this property to disguise and
obfuscate the commands.

The full "manual" versions of your student's commands are

RECODE V1 (missing=5).
RECODE V2 (sysmis missing=4).

Greetings

Jan

-----Original Message-----
From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of
David Wright
Sent: Saturday, September 16, 2006 2:34 AM
To: [hidden email]
Subject: undocumented syntax

I was checking a student's syntax the other day & came across some
syntax I never saw before, was about to mark it incorrect when I noticed
it had worked!  Both syntaxes concern recoding sysmis values:

RECODE V1 (misval=5).
RECODE V2 (sys mis=4).

*note the space between sys & mis.

I have not found in the syntax reference guide the use of "misval" or
"sys mis" before, anybody seen this before?


David