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.

530 EXPORT<br />

Basic Specification<br />

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

from the working data file are written to the portable file, with variable names, variable and<br />

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

Subcommand Order<br />

Subcommands can be named in any order.<br />

Operations<br />

Example<br />

• Portable files are written with 80-character record lengths.<br />

• Portable files may contain some unprintable characters.<br />

• The working data file is still available for transformations and procedures after the<br />

portable file is created.<br />

• The system variables $CASENUM and $DATE are assigned when the file is read by IMPORT.<br />

• If the WEIGHT command is used before EXPORT, the weighting variable is included in the<br />

portable file.<br />

• Variable names that exceed eight bytes are converted to unique eight byte names. For<br />

example, mylongrootname1, mylongrootname2, and mylongrootname3 would be converted<br />

to mylongro, mylong_2, and mylong_3 respectively.<br />

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

• The portable file is written to NEWDATA.<br />

• The variables V1, V2, and V3 are renamed ID, SEX, and AGE in the portable file. Their<br />

names remain V1, V2, and V3 in the working file. None of the other variables written to<br />

the portable file are renamed.<br />

• MAP requests a display of the variables in the portable file.<br />

Methods of Transporting Portable Files<br />

Portable files can be transported on magnetic tape or by a communications program.<br />

Magnetic Tape<br />

Before transporting files on a magnetic tape, make sure the receiving computer can read the<br />

tape being sent. The following tape specifications must be known before you write the<br />

portable file on the tape:<br />

• Number of tracks—either 7 or 9.

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

Saved successfully!

Ooh no, something went wrong!