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.

SPSS-Format Data File<br />

Files 13<br />

An SPSS-format data file is a file specifically formatted for use by SPSS, containing both<br />

data and the dictionary that defines the data. The dictionary contains names for the variables,<br />

formats for reading and displaying values, and optional variable and value labels and<br />

missing-value specifications. SPSS-format data files are created by using a SAVE or XSAVE<br />

command during a session. On most operating systems, the default extension of a saved<br />

SPSS-format data file is .SAV. An SPSS-format data file can also be a matrix file created with<br />

the MATRIX=OUT subcommand on procedures that write matrices.<br />

To retrieve an SPSS-format data file, use GET. SPSS-format data files speed processing<br />

and are required as input for combining files during a session. For a discussion of the structure<br />

of SPSS-format data files, see “SPSS Data File Structure” below.<br />

SPSS Portable File<br />

A portable file contains all of the data and dictionary information stored in the working data<br />

file but is specially formatted for transporting files between installations with different<br />

versions of SPSS (such as the PRIME, VAX, or HONEYWELL GCOS computers) or for<br />

transporting files between SPSS, SPSS/PC+, and other software using the same portable file<br />

format. Use IMPORT to read a portable file and EXPORT to save the working data file as a<br />

portable file. On most operating systems, the default extension of a saved portable file is<br />

.POR. Since a portable file needs conversion, it is always simpler to transport a file as an<br />

SPSS-format data file whenever possible.<br />

Working Data File<br />

The working data file is the data file you build to use in the current session. You can retrieve<br />

an SPSS-format data file using GET, which in effect makes a working copy of the specified<br />

file. You can also build a new file with DATA LIST or other data definition commands.<br />

The working data file is not created until SPSS encounters a command (usually a<br />

procedure) that causes it to read the data (see Table 1). At that point, SPSS executes all of<br />

the preceding data definition and transformation commands and the command that causes the<br />

data to be read. The working data file is then available for further transformations and<br />

procedures, and it remains available until replaced by a new working data file or until the end<br />

of the session.<br />

Some procedures can add variables to the working data file. Others, such as AGGREGATE<br />

and procedures that write matrix materials, can replace the working data file.<br />

Any transformations and statistical analyses that you request during a session are<br />

performed on the working data file. Transformations performed during a session apply to the<br />

working data file only. Changes to the file are lost if the working data file is erased or<br />

replaced before you have saved it. See SAVE and XSAVE.<br />

SPSS Data File Structure<br />

An SPSS-format data file is a self-documented file containing data and descriptive information.<br />

The descriptive information is called the dictionary. It contains variable names and

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

Saved successfully!

Ooh no, something went wrong!