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.

SAVE TRANSLATE 1467<br />

• Date variables are treated as Date columns, but if the database treats Date variables as<br />

TimeStamp (that is, as datetime columns), then the time part of TimeStamp is assigned a<br />

zero value (00:00.00) internally. The date value is unaltered when read back into SPSS.<br />

• Datetime variables are stored as datetime (TimeStamp) columns.<br />

• If a database does not support storing fractional seconds, the fractional value is truncated.<br />

• SPSS dictionary information is not stored in the database table. Any formatting information<br />

contained in the SPSS dictionary is lost.<br />

VERSION Subcommand<br />

VERSION specifies the file version for multiversion applications. For example, this subcommand<br />

is necessary to differentiate between Excel 4.0, Excel 5.0, and Excel 97 files. If no<br />

VERSION is specified, the lowest supported version number is assumed.<br />

Version Application<br />

1 Symphony Release 1.0<br />

2 Symphony Release 2.0, dBASE II<br />

3 dBASE III or dBASE III PLUS<br />

4 Excel 4.0, dBASE IV<br />

5 Excel 5.0/95 Workbook<br />

6 SAS v6<br />

7 SAS v7-8<br />

8 Excel 97-2000 Workbook<br />

X SAS transport file<br />

Example<br />

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

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

PLATFORM Subcommand<br />

The PLATFORM subcommand is required for all SAS file types, with the exception of SAS<br />

transport files. Enter the keyword corresponding to the platform on which the target SAS file<br />

is intended. There is no default value for this command. Choose from the following keywords:<br />

WINDOWS, ALPHA, UNIX.<br />

Example<br />

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

/PLATFORM=WINDOWS /VALFILE=’LABELS.SAS’

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

Saved successfully!

Ooh no, something went wrong!