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.

1628 UPDATE<br />

• IN has only one specification, the name of the flag variable.<br />

• The variable created by IN has value 1 for every case that came from the associated input<br />

file and value 0 if the case came from a different input file.<br />

• Variables created by IN are automatically attached to the end of the resulting file and<br />

cannot be dropped.<br />

Example<br />

UPDATE FILE=WEEK10 /FILE=WEEK11 /IN=INWEEK11 /BY=EMPID.<br />

• IN creates the variable INWEEK11, which has the value 1 for all cases in the resulting file<br />

that came from the input file WEEK11 and the value 0 for those cases that were not in file<br />

WEEK11.<br />

MAP Subcommand<br />

MAP produces a list of the variables are in the new working file and the file or files from<br />

which they came. Variables are listed in the order in which they appear in the resulting file.<br />

MAP has no specifications and must be placed after all FILE, RENAME, and IN subcommands.<br />

• Multiple MAP subcommands can be used. Each MAP shows the current status of the<br />

working data file and reflects only the subcommands that precede the MAP subcommand.<br />

• To obtain a map of the resulting file in its final state, specify MAP last.<br />

• If a variable is renamed, its original and new names are listed. Variables created by IN are<br />

not included in the map, since they are automatically attached to the end of the file and<br />

cannot be dropped.

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

Saved successfully!

Ooh no, something went wrong!