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.

SAVE 1453<br />

• The name changes are identical to those in the previous example: AGE is renamed to<br />

AGE88 and JOBCAT is renamed to JOBCAT88. The parentheses are required with this<br />

method.<br />

MAP Subcommand<br />

MAP displays a list of the variables in the SPSS-format data file and their corresponding<br />

names in the working data file.<br />

• The only specification is keyword MAP. There are no additional specifications.<br />

• Multiple MAP subcommands are allowed. Each MAP subcommand maps the results of<br />

subcommands that precede it, but not results of subcommands that follow it.<br />

Example<br />

GET FILE=HUBEMPL.<br />

SAVE OUTFILE=EMPL88 /RENAME=(AGE=AGE88)(JOBCAT=JOBCAT88)<br />

/KEEP=LNAME NAME JOBCAT88 ALL /MAP.<br />

• MAP is used to confirm the new names for AGE and JOBCAT and the order of variables in<br />

the EMPL88 file (LNAME, NAME, and JOBCAT88, followed by all remaining variables from<br />

the working data file).<br />

COMPRESSED and UNCOMPRESSED Subcommands<br />

COMPRESSED saves the file in compressed form. UNCOMPRESSED saves the file in uncompressed<br />

form. In a compressed file, small integers (from −99 to 155) are stored in one byte<br />

instead of the eight bytes used in an uncompressed file.<br />

• The only specification is the keyword COMPRESSED or UNCOMPRESSED. There are no<br />

additional specifications.<br />

• Compressed data files occupy less disk space than do uncompressed data files.<br />

• Compressed data files take longer to read than do uncompressed data files.<br />

• The GET command, which reads SPSS-format data files, does not need to specify whether<br />

the files it reads are compressed or uncompressed.<br />

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

SAVE command. COMPRESSED is usually the default, though UNCOMPRESSED may be<br />

the default on some systems.<br />

NAMES Subcommand<br />

For all variable names longer than eight bytes, NAMES displays the 8-byte equivalents that<br />

will be used if you read the data file into a version of SPSS prior to release <strong>12.0</strong>.

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

Saved successfully!

Ooh no, something went wrong!