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.

414 DATA LIST<br />

Value Delimiter. For freefield-format data (keywords FREE and LIST), you can specify the<br />

character(s) that separate data values, or you can use the keyword TAB to specify the tab character<br />

as the delimiter. Any delimiter other than the TAB keyword must be enclosed in quotation<br />

marks, and the specification must be enclosed in parentheses, as in DATA LIST FREE(“,”).<br />

End-of-File Processing. You can specify a logical variable that indicates the end of the data<br />

using the END subcommand. This logical variable can be used to invoke special processing<br />

after all the cases from the data file have been read.<br />

Basic Specification<br />

• The basic specification is the FIXED, LIST, or FREE keyword, followed by a slash that<br />

signals the beginning of variable definition.<br />

• FIXED is the default.<br />

• If the data are in an external file, the FILE subcommand must be used.<br />

• If the data are inline, the FILE subcommand is omitted and the data are specified between<br />

the BEGIN DATA and END DATA commands.<br />

• Variable definition for fixed-format data includes a variable name, a column location, and<br />

a format (unless the default numeric format is used). The column location is not specified<br />

if FORTRAN-like formats are used, since these formats include the variable width.<br />

• Variable definition for freefield data includes a variable name and, optionally, a delimiter<br />

specification and a FORTRAN-like format specification. If format specifications include a<br />

width and number of decimal positions (for example, F8.2), the width and decimal specifications<br />

are not used to read the data but are assigned as print and write formats for the variables.<br />

Subcommand Order<br />

Subcommands can be named in any order. However, all subcommands must precede the first<br />

slash, which signals the beginning of variable definition.<br />

<strong>Syntax</strong> Rules<br />

Subcommands on DATA LIST are separated by spaces or commas, not by slashes.<br />

Operations<br />

• DATA LIST clears the working data file and defines a new working file.<br />

• Variable names are stored in the working file dictionary.<br />

• Formats are stored in the working file dictionary and are used to display and write the values.<br />

To change output formats of numeric variables defined on DATA LIST, use the FORMATS<br />

command.

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

Saved successfully!

Ooh no, something went wrong!