SPSS Formats
The FORMATS command sets print and write formats for a variable.
Contents
Usage
formats foo bar baz (F1.0). formats ham (ADATE10) spam eggs (A10).
Note that all variables listed together must have the same type and, if strings, the same width.
Note that strings can only be formatted between A and AHEX formats, and the AHEX length must be exactly twice the A length. The FORMATS command cannot be used to resize a string variable.
Data Model
The FORMATS command executes immediately. Pending transformations are not executed and the active dataset is not read.