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.

Operations<br />

Example<br />

Example<br />

LIST 799<br />

• If VARIABLES is not specified, variables are listed in the order in which they appear in the<br />

working file.<br />

• LIST does not display values for scratch or system variables.<br />

• LIST uses print formats contained in the dictionary of the working data file. Alternative<br />

formats cannot be specified on LIST. See FORMATS or PRINT FORMATS for information<br />

on changing print formats.<br />

• LIST output uses the width specified on SET.<br />

• If a numeric value is longer than its defined width, the program first attempts to list the<br />

value by removing punctuation characters, then uses scientific notation, and finally prints<br />

asterisks.<br />

• If a long string variable cannot be listed within the output width, it is truncated.<br />

• Values of the variables listed for a case are always separated by at least one blank.<br />

• System-missing values are displayed as a period for numeric variables and a blank for<br />

string variables.<br />

• If cases fit on one line, the column width for each variable is determined by the length of<br />

the variable name or the format, whichever is greater. If the variable names do not fit on<br />

one line, they are printed vertically.<br />

• If cases do not fit on one line within the output width specified on SET, they are wrapped.<br />

LIST displays a table illustrating the location of the variables in the output and prints the<br />

name of the first variable in each line at the beginning of the line.<br />

• Each execution of LIST begins at the top of a new page. If SPLIT FILE is in effect, each<br />

split also begins at the top of a new page.<br />

LIST.<br />

• LIST by itself requests a display of the values for all variables in the working file.<br />

LIST VARIABLES=V1 V2 /CASES=FROM 10 TO 100 BY 2.<br />

• LIST produces a list of every second case for variables V1 and V2, starting with case 10<br />

and stopping at case 100.<br />

VARIABLES Subcommand<br />

VARIABLES specifies the variables to be listed. The actual keyword VARIABLES can be omitted.<br />

• The variables must already exist, and they cannot be scratch or system variables.<br />

• If VARIABLES is used, only the specified variables are listed.

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

Saved successfully!

Ooh no, something went wrong!