27.03.2013 Views

SPSS® 12.0 Command Syntax Reference

SPSS® 12.0 Command Syntax Reference

SPSS® 12.0 Command Syntax Reference

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

986 MISSING VALUES<br />

• For date format variables (for example, DATE, ADATE), missing values expressed in date<br />

formats must be enclosed in apostrophes or quotation marks, and values must be<br />

expressed in the same date format as the defined date format for the variable.<br />

• A variable list followed by an empty set of parentheses ( ) deletes any user-missing<br />

specifications for those variables.<br />

• The keyword ALL can be used to refer to all user-defined variables in the working file,<br />

provided the variables are either all numeric or all string. ALL can refer to both numeric<br />

and string variables if it is followed by an empty set of parentheses. This will delete all<br />

user-missing specifications in the working data file.<br />

• More than one MISSING VALUES command can be specified per session.<br />

Operations<br />

Example<br />

Example<br />

Example<br />

• Unlike most transformations, MISSING VALUES takes effect as soon as it is encountered.<br />

Special attention should be paid to its position among commands. See “<strong>Command</strong> Order”<br />

on p. 8 in Volume I for more information.<br />

• Missing-value specifications can be changed between procedures. New specifications<br />

replace previous ones. If a variable is mentioned more than once on one or more MISSING<br />

VALUES commands before a procedure, only the last specification is used.<br />

• Missing-value specifications are saved in SPSS-format data files (see SAVE) and portable<br />

files (see EXPORT).<br />

MISSING VALUES V1 (8,9) V2 V3 (0) V4 (’X’) V5 TO V9 (’ ’).<br />

• The values 8 and 9 are declared missing for the numeric variable V1.<br />

• The value 0 is declared missing for the numeric variables V2 and V3.<br />

• The value X is declared missing for the string variable V4.<br />

• Blanks are declared missing for the string variables between and including V5 and V9. All<br />

of these variables must have a width of four columns.<br />

MISSING VALUES V1 ().<br />

• Any previously declared missing values for V1 are deleted.<br />

MISSING VALUES ALL (9).<br />

• The value 9 is declared missing for all variables in the working data file; the variables<br />

must all be numeric. All previous user-missing specifications are overridden.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!