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.

640 GET TRANSLATE<br />

WK Any Lotus 1-2-3 or Symphony file.<br />

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

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

SYM Symphony Release 2.0 or Symphony Release 1.0.<br />

SLK Microsoft Excel and Multiplan saved in SYLK (symbolic link) format.<br />

XLS Microsoft Excel.<br />

DBF All dBASE files.<br />

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

Example<br />

GET TRANSLATE FILE=’PROJECT.OCT’ /TYPE=SLK.<br />

• GET TRANSLATE creates a working data file from the Multiplan file PROJECT.OCT.<br />

FIELDNAMES Subcommand<br />

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

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

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

• Each cell in the first row of the spreadsheet file (or the specified range) must contain a<br />

field name. If a column does not contain a name, the column is dropped.<br />

• Field names are converted to valid SPSS variable names. For information on variable<br />

naming rules, see “Variable Names” on p. 21.<br />

• If two or more columns in the spreadsheet have the same field name, digits are appended<br />

to all field names after the first, making them unique.<br />

• Illegal characters in field names are changed to underscores in this program.<br />

• If the spreadsheet file uses reserved words (ALL, AND, BY, EQ, GE, GT, LE, LT, NE, NOT,<br />

OR, TO, or WITH) as field names, GET TRANSLATE appends a dollar sign ($) to the variable<br />

name. For example, columns named GE, GT, EQ, and BY will be renamed GE$, GT$, EQ$,<br />

and BY$ in the working data file.<br />

Example<br />

GET TRANSLATE FILE=’MONTHLY.SYM’ /FIELDNAMES.<br />

• GET TRANSLATE creates a working data file from a Symphony 1.0 spreadsheet. The first<br />

row in the spreadsheet contains field names that are used as variable names in the working<br />

file.<br />

RANGE Subcommand<br />

RANGE translates a specified set of cells from a spreadsheet file.

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

Saved successfully!

Ooh no, something went wrong!