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.

RECORDS Subcommand<br />

PRINT 1253<br />

RECORDS indicates the total number of lines displayed per case. The number specified on<br />

RECORDS is informational only. The actual specification that causes variables to display on a<br />

new line is a slash within the variable specifications. Each new line is requested by another slash.<br />

• RECORDS must be specified before the slash that precedes the start of the variable<br />

specifications.<br />

• The only specification on RECORDS is an integer to indicate the number of records for<br />

the output. If the number does not agree with the actual number of records indicated by<br />

slashes, the program issues a warning and ignores the specification on RECORDS.<br />

• Specifications for each line of output must begin with a slash. An integer can follow the<br />

slash, indicating the line on which values are to be displayed. The integer is informational<br />

only. It cannot be used to rearrange the order of records in the output. If the integer does<br />

not agree with the actual record number indicated by the number of slashes in the variable<br />

specifications, the integer is ignored.<br />

• A slash that is not followed by a variable list generates a blank line in the output.<br />

Example<br />

PRINT RECORDS=3 /EMPLOYID NAME DEPT<br />

/EMPLOYID TENURE SALARY<br />

/.<br />

EXECUTE.<br />

• PRINT displays the values of an individual’s name and department on one line, tenure and<br />

salary on the next line, and the employee identification number on both lines, followed<br />

by a blank third line. Two lines are displayed for each case, and cases in the output are<br />

separated by a blank line.<br />

Example<br />

PRINT RECORDS=3 /1 EMPLOYID NAME DEPT<br />

/2 EMPLOYID TENURE SALARY<br />

/3.<br />

• This PRINT command is equivalent to that in the preceding example.<br />

Example<br />

PRINT / EMPLOYID NAME DEPT / EMPLOYID TENURE SALARY /.<br />

• This PRINT command is equivalent to those in the two preceding examples.<br />

OUTFILE Subcommand<br />

OUTFILE specifies a file for the output from the PRINT command. By default, PRINT output<br />

is included with the rest of the output from the session.<br />

• OUTFILE must be specified before the slash preceding the start of the variable specifications.<br />

• The output from PRINT cannot exceed 132 characters, even if the external file is defined<br />

with a longer record length.

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

Saved successfully!

Ooh no, something went wrong!