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.

534 EXPORT<br />

MAP Subcommand<br />

MAP displays any changes that have been specified by the RENAME, DROP, or KEEP<br />

subcommands.<br />

• MAP can be specified as often as desired.<br />

• Each MAP subcommand maps the results of subcommands that precede it; results of<br />

subcommands that follow it are not mapped.When MAP is specified last, it also produces<br />

a description of the portable file.<br />

Example<br />

EXPORT OUTFILE=NEWSUM /DROP=DEPT TO DIVISION /MAP<br />

/RENAME NAME=LNAME WAGE=SALARY /MAP.<br />

• The first MAP subcommand produces a listing of the variables in the file after DROP has<br />

dropped the specified variables.<br />

• RENAME renames NAME and WAGE.<br />

• The second MAP subcommand shows the variables in the file after renaming. Since this<br />

is the last subcommand, the listing will show the variables as they are written in the<br />

portable file.<br />

DIGITS Subcommand<br />

DIGITS specifies the degree of precision for all noninteger numeric values written to the<br />

portable file.<br />

• DIGITS has the general form DIGITS=n, where n is the number of digits of precision.<br />

• DIGITS applies to all numbers for which rounding is required.<br />

• Different degrees of precision cannot be specified for different variables. Thus, DIGITS<br />

should be set according to the requirements of the variable that needs the most precision.<br />

• Default precision methods used by EXPORT work perfectly for integers that are not too<br />

large and for fractions whose denominators are products of 2, 3, and 5 (all decimals, quarters,<br />

eighths, sixteenths, thirds, thirtieths, sixtieths, and so forth.) For other fractions and<br />

for integers too large to be represented exactly in the working data file (usually more than<br />

9 digits, often 15 or more), the representation used in the working file contains some error<br />

already, so no exact way of sending these numbers is possible. The program sends enough<br />

digits to get very close. The number of digits sent in these cases depends on the originating<br />

computer: on mainframe IBM versions of the program, it is the equivalent of 13<br />

decimal digits (integer and fractional parts combined). If many numbers on a file require<br />

this level of precision, the file can grow quite large. If you do not need the full default<br />

precision, you can save some space in the portable file by using the DIGITS subcommand.<br />

Example<br />

EXPORT OUTFILE=NEWSUM /DROP=DEPT TO DIVISION /MAP /DIGITS=4.<br />

• DIGITS guarantees the accuracy of values to four significant digits. For example,<br />

12.34567890876 will be rounded to 12.35.

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

Saved successfully!

Ooh no, something went wrong!