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.

EXPORT<br />

EXPORT OUTFILE=file<br />

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

{TAPE }<br />

[/UNSELECTED=[{RETAIN}]<br />

{DELETE}<br />

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

{varlist}<br />

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

[/MAP]<br />

[/DIGITS=n]<br />

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

Example<br />

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

Overview<br />

Options<br />

EXPORT produces a portable data file. A portable data file is a data file created used to transport<br />

data between different types of computers and operating systems (such as between IBM<br />

CMS and Digital VAX/VMS) or between SPSS, SPSS/PC+, or other software using the same<br />

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

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

data to a computer and operating system the same as your own, send an SPSS-format data<br />

file, which is easier and faster to process than a portable file.)<br />

EXPORT is similar to the SAVE command. It can occur in the same position in the<br />

command sequence as the SAVE command and saves the working data file. The file includes<br />

the results of all permanent transformations and any temporary transformations made just<br />

prior to the EXPORT command. The working data file is unchanged after the EXPORT<br />

command.<br />

Format. You can control the format of the portable file using the TYPE subcommand.<br />

Variables. You can save a subset of variables from the working file and rename the variables<br />

using the DROP, KEEP, and RENAME subcommands. You can also produce a record of all<br />

variables and their names on the exported file with the MAP subcommand.<br />

Precision. You can specify the number of decimal digits of precision for the values of all<br />

numeric variables on the DIGITS subcommand.<br />

529

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

Saved successfully!

Ooh no, something went wrong!