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.

618 GET<br />

Basic Specification<br />

• The basic specification is the FILE subcommand, which specifies the SPSS-format data<br />

file to be read.<br />

• By default, GET copies all variables from the SPSS-format data file into the working data<br />

file. Variables in the working file are in the same order and have the same names as variables<br />

in the SPSS-format data file. Documentary text from the SPSS-format data file is<br />

copied into the dictionary of the working file.<br />

Subcommand Order<br />

• FILE must be specified first.<br />

• The remaining subcommands can be specified in any order.<br />

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

• FILE is required and can be specified only once.<br />

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

• Documentary text copied from the SPSS-format data file can be dropped from the working<br />

data file with the DROP DOCUMENTS command.<br />

• GET cannot be used inside a DO IF—END IF or LOOP—END LOOP structure.<br />

Operations<br />

• GET reads the dictionary of the SPSS-format data file.<br />

• If KEEP is not specified, variables in the working data file are in the same order as variables<br />

in the SPSS-format data file.<br />

• A file saved with weighting in effect maintains weighting the next time the file is accesed.<br />

For a discussion of turning off weights, see WEIGHT.<br />

FILE Subcommand<br />

FILE specifies the SPSS-format data file to be read. FILE is required and can be specified only<br />

once. It must be the first specification on GET.<br />

DROP and KEEP Subcommands<br />

DROP and KEEP are used to copy a subset of variables into the working data file. DROP<br />

specifies variables that should not be copied into the working file. KEEP specifies variables<br />

that should be copied. Variables not specified on KEEP are dropped.

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

Saved successfully!

Ooh no, something went wrong!