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.

1468 SAVE TRANSLATE<br />

CELLS Subcommand<br />

CELLS, when set to LABELS, saves value labels instead of data values in Excel 97 format or<br />

later. The default value of VALUES saves the data values.<br />

Example<br />

SAVE TRANSLATE OUTFILE=’STAFF.XLS’ /TYPE=XLS /VERSION=8<br />

/CELLS=LABELS.<br />

• SAVE TRANSLATE creates an Excel spreadsheet file in the version 97 format with value<br />

labels written to the file rather than data values.<br />

VALFILE Subcommand<br />

The VALFILE subcommand, which is available only for SAS file formats, excluding the SAS<br />

transport file format, saves value labels to a SAS syntax file. This syntax file is used in conjunction<br />

with the saved SAS data file to re-create value labels in SAS.<br />

• The syntax file has a .sas file extension.<br />

Example<br />

SAVE TRANSLATE OUTFILE=’STAFF.SD7’ /TYPE=SAS /VERSION=7<br />

/PLATFORM=WINDOWS /VALFILE=’LABELS.SAS’.<br />

• SAVE TRANSLATE saves the current data as a SAS v7 short filename file and creates a<br />

SAS syntax file named LABELS.SAS, which contains the value labels for the data.<br />

FIELDNAMES Subcommand<br />

FIELDNAMES translates variable names into field names in the spreadsheet.<br />

• FIELDNAMES can be used with spreadsheets and tab-delimited ASCII files. FIELDNAMES<br />

is ignored when used with database files.<br />

• Variable names are transferred to the first row of the spreadsheet file.<br />

Example<br />

SAVE TRANSLATE OUTFILE='STAFF.SYM' /VERSION=2 /FIELDNAMES.<br />

• SAVE TRANSLATE creates a Symphony Release 2.0 spreadsheet file containing all variables<br />

from the working data file. The variable names are transferred to the Symphony file.<br />

UNSELECTED Subcommand<br />

UNSELECTED determines whether cases excluded on a previous FILTER or USE command<br />

are to be retained or deleted in the SPSS-format data file. The default is RETAIN. The<br />

UNSELECTED subcommand has no effect when the working data file does not contain unselected<br />

cases.

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

Saved successfully!

Ooh no, something went wrong!