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.

IMPORT<br />

IMPORT FILE=file<br />

[/TYPE={COMM}]<br />

{TAPE}<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 />

IMPORT FILE=NEWDATA /RENAME=(V1 TO V3=ID, SEX, AGE) /MAP.<br />

Overview<br />

Options<br />

IMPORT reads SPSS-format portable data files created with the EXPORT command. A portable<br />

data file is a data file created by the program and used to transport data between different<br />

types of computers and operating systems (such as between IBM CMS and Digital<br />

VAX/VMS) or between SPSS, SPSS/PC+, or other software using the same portable file<br />

format. Like an SPSS-format data file, a portable file contains all of the data and dictionary<br />

information stored in the working data file from which it was created.<br />

The program can also read data files created by other software programs. See GET<br />

TRANSLATE for information on reading files created by spreadsheet and database programs<br />

such as dBASE, Lotus, and Excel.<br />

Format. You can specify the format of the portable file (magnetic tape or communications<br />

program) on the TYPE subcommand. For more information on magnetic tapes and communications<br />

programs, see “Methods of Transporting Portable Files” on p. 530.<br />

Variables. You can read a subset of variables from the working data file with the DROP and<br />

KEEP subcommands. You can rename variables using RENAME. You can also produce a<br />

record of all variables and their names in the working file with the MAP subcommand.<br />

Basic Specification<br />

The basic specification is the FILE subcommand with a file specification. All variables from<br />

the portable file are copied into the working data file with their original names, variable and<br />

value labels, missing-value flags, and print and write formats.<br />

767

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

Saved successfully!

Ooh no, something went wrong!