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.

BEGIN DATA—END DATA<br />

BEGIN DATA<br />

data records<br />

END DATA<br />

Example<br />

BEGIN DATA<br />

1 3424 274 ABU DHABI 2<br />

2 39932 86 AMSTERDAM 4<br />

3 8889 232 ATHENS<br />

4 3424 294 BOGOTA 3<br />

END DATA.<br />

Overview<br />

BEGIN DATA and END DATA are used when data are entered within the command sequence<br />

(inline data). BEGIN DATA and END DATA are also used for inline matrix data. BEGIN DATA<br />

signals the beginning of data lines and END DATA signals the end of data lines.<br />

Basic Specification<br />

The basic specification is BEGIN DATA, the data lines, and END DATA. BEGIN DATA must be<br />

specified by itself on the line that immediately precedes the first data line. END DATA is<br />

specified by itself on the line that immediately follows the last data line.<br />

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

• BEGIN DATA, the data, and END DATA must precede the first procedure.<br />

• The command terminator after BEGIN DATA is optional. It is best to leave it out so that<br />

the program will treat inline data as one continuous specification.<br />

• END DATA must always begin in column 1. It must be spelled out in full and can have<br />

only one space between the words END and DATA. Procedures and additional transformations<br />

can follow the END DATA command.<br />

• Data lines must not have a command terminator. For inline data formats, see DATA LIST.<br />

• Inline data records are limited to a maximum of 80 columns. (On some systems, the<br />

maximum may be fewer than 80 columns.) If data records exceed 80 columns, they must<br />

be stored in an external file that is specified on the FILE subcommand of the DATA LIST<br />

(or similar) command.<br />

167

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

Saved successfully!

Ooh no, something went wrong!