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.

PRINT EJECT<br />

PRINT EJECT [OUTFILE=file] [RECORDS={1}] [{NOTABLE}]<br />

{n} {TABLE }<br />

/{1 } varlist [{col location [(format)]}] [varlist...]<br />

{rec #} {(format list) }<br />

{* }<br />

[/{2 }...]<br />

{rec #}<br />

Example<br />

DO IF $CASENUM EQ 1.<br />

PRINT EJECT /’ NAME ’ 1 ’DEPT’ 25 ’HIRED’ 30 ’ SALARY’ 35.<br />

END IF.<br />

PRINT / NAME DEPT *<br />

MOHIRED(T30,F2) ’/’ YRHIRED *<br />

SALARY (T35,DOLLAR8).<br />

EXECUTE.<br />

Overview<br />

Options<br />

PRINT EJECT displays specified information at the top of a new page of the output. PRINT<br />

EJECT causes a page ejection each time it is executed. If PRINT EJECT is not used in a DO<br />

IF—END IF structure, it is executed for each case in the data, and each case is displayed on<br />

a separate page.<br />

PRINT EJECT is designed to be used with the PRINT command to insert titles and column<br />

headings above the values displayed by PRINT. PRINT can also generate titles and headings,<br />

but PRINT cannot be used to control page ejections.<br />

PRINT EJECT and PRINT can be used for writing simple reports.<br />

The options available for PRINT EJECT are identical to those available for PRINT:<br />

• You can specify formats for the variables.<br />

• You can specify string values within the variable specifications. With PRINT EJECT, the<br />

strings are usually used as titles or column headings and often include a specification for<br />

column location.<br />

• You can display each case on more than one line using the RECORDS subcommand.<br />

• You can direct the output to a specified file using the OUTFILE subcommand.<br />

• You can display a table that summarizes variable formats with the TABLE subcommand.<br />

All of these features are documented in detail for the PRINT command and work identically<br />

for PRINT EJECT. Refer to PRINT for additional information.<br />

1255

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

Saved successfully!

Ooh no, something went wrong!