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.

CLEAR TRANSFORMATIONS<br />

Overview<br />

CLEAR TRANSFORMATIONS<br />

CLEAR TRANSFORMATIONS discards previous data transformation commands.<br />

Basic Specification<br />

The only specification is the command itself. CLEAR TRANSFORMATIONS has no additional<br />

specifications.<br />

Operations<br />

Example<br />

• CLEAR TRANSFORMATIONS discards all data transformation commands that have<br />

accumulated since the last procedure.<br />

• CLEAR TRANSFORMATIONS has no effect if a command file is submitted to your operating<br />

system for execution. It generates a warning when a command file is present.<br />

• Be sure to delete CLEAR TRANSFORMATIONS and any unwanted transformation<br />

commands from the journal file if you plan to submit the file to the operating system for<br />

batch-mode execution. Otherwise, the unwanted transformations will cause problems.<br />

GET FILE=QUERY.<br />

FREQUENCIES=ITEM1 ITEM2 ITEM3.<br />

RECODE ITEM1, ITEM2, ITEM3 (0=1) (1=0) (2=-1).<br />

COMPUTE INDEXQ=(ITEM1 + ITEM2 + ITEM3)/3.<br />

VARIABLE LABELS INDEXQ ’SUMMARY INDEX OF QUESTIONS’.<br />

CLEAR TRANSFORMATIONS.<br />

DISPLAY DICTIONARY.<br />

• The GET and FREQUENCIES commands are executed.<br />

• The RECODE, COMPUTE, and VARIABLE LABELS commands are transformations. They<br />

do not affect the data until the next procedure is executed.<br />

• The CLEAR TRANSFORMATIONS command discards the RECODE, COMPUTE, and<br />

VARIABLE LABELS commands.<br />

• The DISPLAY command displays the working file dictionary. Data values and labels are<br />

exactly as they were when the FREQUENCIES command was executed. Variable INDEXQ<br />

does not exist because CLEAR TRANSFORMATIONS discarded the COMPUTE command.<br />

225

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

Saved successfully!

Ooh no, something went wrong!