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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

1250 PRINT<br />

<strong>Syntax</strong> Rules<br />

• A slash must precede the variable specifications. The first slash begins the definition of<br />

the first (and possibly only) line per case of the PRINT display.<br />

• Specified variables must already exist, but they can be numeric, string, scratch, temporary,<br />

or system variables. Subscripted variable names, such as X(1) for the first element in<br />

vector X, cannot be used.<br />

• Keyword ALL can be used to display the values of all user-defined variables in the<br />

working data file.<br />

Operations<br />

Example<br />

• PRINT is executed once for each case constructed from the data file.<br />

• PRINT is a transformation and will not be executed unless it is followed by a procedure or<br />

the EXECUTE command.<br />

• Because PRINT is a transformation command, the output might be mixed with casewise<br />

procedure output. Procedures that produce individual case listings (such as LIST) should<br />

not be used immediately after PRINT. An intervening EXECUTE or procedure command<br />

should be specified.<br />

• Values are displayed with a blank space between them. However, if a format is specified<br />

for a variable, the blank space for that variable’s values is suppressed.<br />

• Values are displayed in the output as the data are read. The PRINT output appears before<br />

the output from the first procedure.<br />

• If more variables are specified than can be displayed in 132 columns or within the width<br />

specified on SET WIDTH, the program displays an error message. You must reduce the<br />

number of variables or split the output into several records.<br />

• User-missing values are displayed just like valid values. System-missing values are represented<br />

by a period.<br />

PRINT / MOHIRED YRHIRED DEPT SALARY NAME.<br />

FREQUENCIES VARIABLES=DEPT.<br />

• PRINT displays values for each variable on the variable list. The FREQUENCIES procedure<br />

reads the data and causes PRINT to be executed.<br />

• All variables are displayed using their dictionary formats. One blank space separates the<br />

values of each variable.<br />

Example<br />

PRINT /ALL.<br />

EXECUTE.

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

Saved successfully!

Ooh no, something went wrong!