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.

1466 SAVE TRANSLATE<br />

WK1 1-2-3 Release 2.0.<br />

WKS 1-2-3 Release 1.4.<br />

SYM Symphony releases.<br />

SLK Multiplan (symbolic format).<br />

XLS Excel.<br />

DB2 dBASE II.<br />

DB3 dBASE III or dBASE III PLUS.<br />

DB4 dBASE IV.<br />

TAB Tab-delimited ASCII data files.<br />

PC SPSS/PC+ system files.<br />

ODBC Database accessed via ODBC.<br />

SAS SAS data files and SAS transport files.<br />

Example<br />

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

• SAVE TRANSLATE translates the working data file into the Excel spreadsheet file named<br />

PROJECT.XLS.<br />

Writing to an ODBC Database Source<br />

The following rules apply when writing to a database with TYPE=ODBC:<br />

• If any case cannot be stored in the database for any reason, an error is returned. Therefore,<br />

either all cases are stored or none.<br />

• At insert time, a check is performed to see if the value being stored in a column is likely<br />

to cause an overflow. If that is the case, the user is warned about the overflow and that a<br />

SYSMIS is stored instead.<br />

• If any variable names in the working data file contain characters not allowed by the database,<br />

they are replaced by an underscore. If this causes a duplicate variable name, a new<br />

variable name is generated.<br />

• The following SPSS variable type classes are supported:<br />

VC_STRING<br />

VC_NUMERIC<br />

VC_PERCENT<br />

VC_CURRENCY<br />

VC_TIME<br />

VC_DATE<br />

• If a variable falls into the VC_UNKNOWN category, it is dropped. SPSS missing values are<br />

treated as missing values in the databases.

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

Saved successfully!

Ooh no, something went wrong!