FORMAT Subcommand (LIST command)

FORMAT controls whether cases wrap if they cannot fit on a single line and whether the case number is displayed for each listed case. The default display uses more than one line per case (if necessary) and does not number cases.

  • The minimum specification is a single keyword.
  • WRAP and SINGLE are alternatives, as are NUMBERED and UNNUMBERED. Only one of each pair can be specified.
  • If SPLIT FILE is in effect for NUMBERED, case numbering restarts at each split. To get sequential numbering regardless of splits, create a variable and set it equal to the system variable $CASENUM and then name this variable as the first variable on the VARIABLES subcommand. An appropriate format should be specified for the new variable before it is used on LIST.

WRAP. Wrap cases if they do not fit on a single line. Page width is determined by the SET WIDTH command. This is the default.

SINGLE. Limit each case to one line. Only variables that fit on a single line are displayed.

UNNUMBERED. Do not include the sequence number of each case. This is the default.

NUMBERED. Include the sequence number of each case. The sequence number is displayed to the left of the listed values.