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.

GET<br />

GET FILE=file<br />

[/KEEP={ALL** }] [/DROP=varlist]<br />

{varlist}<br />

[/RENAME=(old varnames=new varnames)...]<br />

[/MAP]<br />

**Default if the subcommand is omitted.<br />

Example<br />

GET FILE=EMPL.<br />

Overview<br />

Options<br />

GET reads an SPSS-format data file that was created by the SAVE or XSAVE command. An<br />

SPSS-format data file contains data plus a dictionary. The dictionary contains a name for<br />

each variable in the data file, plus any assigned variable and value labels, missing-value<br />

flags, and variable print and write formats. The dictionary also contains document text<br />

created with the DOCUMENTS command.<br />

GET is used only for reading SPSS-format data files. See DATA LIST for information on<br />

reading and defining data in a text data file. See MATRIX DATA for information on defining<br />

matrix materials in a text data file. For information on defining complex data files that cannot<br />

be defined with DATA LIST alone, see FILE TYPE and REPEATING DATA.<br />

The program can also read data files created for other software applications. See IMPORT<br />

for information on reading portable files created with EXPORT. See commands such as GET<br />

TRANSLATE and GET SAS for information on reading files created by other software<br />

programs.<br />

Variable Subsets and Order. You can read a subset of variables and reorder the variables that<br />

are copied into the working data file using the DROP and KEEP subcommands.<br />

Variable Names. You can rename variables as they are copied into the working data file with<br />

the RENAME subcommand.<br />

Variable Map. To confirm the names and order of variables in the working data file, use the<br />

MAP subcommand. MAP displays the variables in the working file next to their corresponding<br />

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

617

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

Saved successfully!

Ooh no, something went wrong!