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.

628 GET DATA<br />

FIXCASE Subcommand<br />

The FIXCASE subcommand applies to fixed data (ARRANGEMENT=FIXED) only. It specifies<br />

the number of lines (records) to read for each case.<br />

The only specification for this subcommand is an integer greater than zero that indicates<br />

the number of lines (records) per case. The default is 1.<br />

IMPORTCASES Subcommand<br />

The IMPORTCASES subcommand allows you to specify the number of cases to read.<br />

ALL Read all cases in the file. This is the default.<br />

FIRST n Read the first n cases. The value of n must be a positive integer.<br />

PERCENT n Read approximately the first n percent of cases. The value of n must be a<br />

positive integer less than 100. The percentage of cases actually selected only<br />

approximates the specified percentage. The more cases there are in the data<br />

file, the closer the percentage of cases selected is to the specified percentage.<br />

DELIMITERS Subcommand<br />

The DELIMITERS subcommand applies to delimited data (ARRANGEMENT=DELIMITED)<br />

only. It specifies the characters to read as delimiters between data values.<br />

• Each delimiter can only be a single character, except for the specification of a tab or a<br />

backslash as a delimiter (see below).<br />

• The list of delimiters must be enclosed in quotes or apostrophes.<br />

• There should be no spaces or other delimiters between delimiter specifications, except for<br />

a space that indicates a space as a delimiter.<br />

• To specify a tab as a delimiter use "\t". This must be the first delimiter specified.<br />

• To specify a backslash as a delimiter, use two backslashes ("\\"). This must be the first<br />

delimiter specified unless you also specify a tab as a delimiter, in which case the backslash<br />

specification should come second—immediately after the tab specification.<br />

Missing data with delimited data. Multiple consecutive spaces in a data file are treated as a<br />

single space and cannot be used to indicate missing data. For any other delimiter, multiple<br />

delimiters without any intervening data indicate missing data.<br />

Example<br />

DELIMITERS "\t\\ ,;"<br />

In this example, tabs, backslashes, spaces, commas, and semicolons will be read as delimiters<br />

between data values.

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

Saved successfully!

Ooh no, something went wrong!