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.

SAVE 1449<br />

Variable Map. To confirm the names and order of the variables saved in the SPSS-format data<br />

file, use the MAP subcommand. MAP displays the variables saved in the SPSS-format data<br />

file next to their corresponding names in the working data file.<br />

Data Compression. You can write the data file in compressed or uncompressed form using the<br />

COMPRESSED or UNCOMPRESSED subcommand.<br />

Basic Specification<br />

The basic specification is the OUTFILE subcommand, which specifies a name for the SPSSformat<br />

data file to be saved.<br />

Subcommand Order<br />

• Subcommands can be specified in any order.<br />

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

• OUTFILE is required and can be specified only once. If OUTFILE is specified more than<br />

once, only the last OUTFILE specified is in effect.<br />

• KEEP, DROP, RENAME, and MAP can each be used as many times as needed.<br />

• Only one of the subcommands COMPRESSED or UNCOMPRESSED can be specified per<br />

SAVE command.<br />

Operations<br />

• SAVE is executed immediately and causes the data to be read.<br />

• The new SPSS-format data file dictionary is arranged in the same order as the working file<br />

dictionary, unless variables are reordered with the KEEP subcommand. Documentary text<br />

from the working file dictionary is always saved unless it is dropped with the DROP<br />

DOCUMENTS command before SAVE.<br />

• New variables created by transformations and procedures previous to the SAVE command<br />

are included in the new SPSS-format data file, and variables altered by transformations<br />

are saved in their modified form. Results of any temporary transformations immediately<br />

preceding the SAVE command are included in the file; scratch variables are not.<br />

• SPSS-format data files are binary files designed to be read and written by SPSS only.<br />

SPSS-format data files can be edited only with the UPDATE command. Use the MATCH<br />

FILES and ADD FILES commands to merge SPSS-format data files.<br />

• The working data file is still available for transformations and procedures after SAVE is<br />

executed.<br />

• SAVE processes the dictionary first and displays a message that indicates how many variables<br />

will be saved. Once the data are written, SAVE indicates how many cases were saved.<br />

If the second message does not appear, the file was probably not completely written.

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

Saved successfully!

Ooh no, something went wrong!