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.

GET TRANSLATE 641<br />

• RANGE cannot be used for translating database files.<br />

• For 1-2-3 or Symphony, specify the beginning of the range with a column letter and row<br />

number followed by two periods and the end of the range with a column letter and row<br />

number, as in A1..K14.<br />

• For Multiplan spreadsheets, specify the beginning and ending cells of the range separated<br />

by a colon, as in R1C1:R14C11.<br />

• For Excel files, specify the beginning column letter and row number, a colon, and the ending<br />

column letter and row number, as in A1:K14.<br />

• You can also specify the range using range names supplied in Symphony, 1-2-3, or<br />

Multiplan.<br />

• If you specify FIELDNAMES with RANGE, the first row of the range must contain field names.<br />

Example<br />

GET TRANSLATE FILE=’PROJECT.WKS’ /FIELDNAMES /RANGE=D3..J279.<br />

• GET TRANSLATE creates an SPSS working data file from the 1-2-3 Release 1A file<br />

PROJECT.WKS.<br />

• The field names in the first row of the range (row 3) are used as variable names.<br />

• Data from cells D4 through J279 are transferred to the working data file.<br />

DROP and KEEP Subcommands<br />

DROP and KEEP are used to copy a subset of variables into the working data file. DROP specifies<br />

the variables not to copy into the working file. KEEP specifies variables to copy. Variables not<br />

specified on KEEP are dropped.<br />

• DROP and KEEP cannot precede the FILE or TYPE subcommands.<br />

• DROP and KEEP specifications use variable names. By default, this program uses the<br />

column letters from spreadsheets and the field names from databases as variable names.<br />

• If FIELDNAMES is specified when translating from a spreadsheet, the DROP and KEEP<br />

subcommands must refer to the field names, not the default column letters.<br />

• Variables can be specified in any order. Neither DROP nor KEEP affects the order of variables<br />

in the resulting file. Variables are kept in their original order.<br />

• If a variable is referred to twice on the same subcommand, only the first mention of the<br />

variable is recognized.<br />

• Multiple DROP and KEEP subcommands are allowed; the effect is cumulative. Specifying<br />

a variable named on a previous DROP or not named on a previous KEEP results in an error<br />

and the command is not executed.<br />

• If you specify both RANGE and KEEP, the resulting file contains only variables that are<br />

both within the range and specified on KEEP.<br />

• If you specify both RANGE and DROP, the resulting file contains only variables within the<br />

range and excludes those mentioned on DROP, even if they are within the range.<br />

Example<br />

GET TRANSLATE FILE=’ADDRESS.DBF’ /DROP=PHONENO, ENTRY.

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

Saved successfully!

Ooh no, something went wrong!