Examples (BEGIN DATA-END DATA command)

DATA LIST /XVAR 1 YVAR ZVAR 3-12 CVAR 14-22(A) JVAR 24.
BEGIN DATA
1  3424  274 ABU DHABI 2
2 39932   86 AMSTERDAM 4
3  8889  232 ATHENS
4  3424  294 BOGOTA    3
5 11323  332 LONDON    3
6   323  232 MANILA    1
7  3234  899 CHICAGO   4
8 78998 2344 VIENNA    3
9  8870  983 ZURICH    5
END DATA.
MEANS XVAR BY JVAR.
  • DATA LIST defines the names and column locations of the variables. The FILE subcommand is omitted because the data are inline.
  • There are nine cases in the inline data. Each line of data completes a case.
  • END DATA signals the end of data lines. It begins in column 1 and has only a single space between END and DATA.