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.

WRITE<br />

WRITE [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 />

WRITE OUTFILE=PRSNNL / MOHIRED YRHIRED DEPT SALARY NAME.<br />

EXECUTE.<br />

Overview<br />

Options<br />

WRITE writes files in a machine-readable format that can be used by other software applications.<br />

When used for this purpose, the OUTFILE subcommand is required. If OUTFILE is<br />

not specified, the output from WRITE that can be displayed is included with the output from<br />

your session in a format similar to that used by the PRINT command.<br />

Formats. You can specify formats for the variables. (See “Formats” on p. 1673.)<br />

Strings. You can include strings within the variable specifications. The strings can be used<br />

to label values or to add extra space between values. (See “Strings” on p. 1674.)<br />

Multiple Lines per Case. You can write variables on more than one line for each case. See the<br />

RECORDS subcommand on p. 1674.<br />

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

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

subcommand.<br />

Subcommand Order<br />

Subcommands can be specified in any order. However, all subcommands must be used<br />

before the slash that precedes the first variable list.<br />

1671

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

Saved successfully!

Ooh no, something went wrong!