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.

CONNECT Subcommand<br />

CONNECT identifies the database name and other parameters for TYPE=ODBC.<br />

Example<br />

SAVE TRANSLATE<br />

/CONNECT="DSN=MSAccess;UID=rkrishna;PWD=123xyz"<br />

/TABLE="mytable"<br />

/TYPE=ODBC.<br />

TABLE Subcommand<br />

TABLE identifies the table name for TYPE=ODBC.<br />

Example<br />

SAVE TRANSLATE<br />

/CONNECT="DSN=MSAccess;UID=rkrishna;PWD=123xyz"<br />

/TABLE="mytable"<br />

/TYPE=ODBC.<br />

REPLACE Subcommand<br />

SAVE TRANSLATE 1465<br />

REPLACE gives permission to overwrite an existing file of the same name. It takes no further<br />

specifications.<br />

APPEND Subcommand<br />

APPEND appends to an existing database table after type and variable name validations.<br />

There must be a matching column in the table for each SPSS variable. If a column that can<br />

correctly store an SPSS variable is not found, a failure is returned. If the table contains more<br />

columns than the number of SPSS variables, the command still stores the data in the table.<br />

The variable names and column names must match exactly. A variable can be stored in a column<br />

as long as the column type is one that can store values of the SPSS variable type. So, a<br />

column of any numeric type (short integer, integer, float, double, etc.) is valid for a numeric<br />

SPSS variable, and a column of any character type is valid for a string SPSS variable.<br />

APPEND is valid only for TYPE=ODBC. You can specify either APPEND or REPLACE but<br />

not both.<br />

TYPE Subcommand<br />

TYPE indicates the format of the resulting file.<br />

• TYPE can be omitted for spreadsheet files if the file extension named on OUTFILE is the<br />

default for the type of file you are saving.<br />

• TYPE with the keyword DB2, DB3, or DB4 is required for translating to dBASE files.<br />

• TYPE takes precedence over the file extension.

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

Saved successfully!

Ooh no, something went wrong!