Differences between revisions 1 and 2
Revision 1 as of 2023-06-11 20:20:04
Size: 537
Comment:
Revision 2 as of 2023-06-11 20:50:51
Size: 817
Comment:
Deletions are marked like this. Additions are marked like this.
Line 20: Line 20:
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.

SPSS Formats

The FORMATS command sets print and write formats for a variable.


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.


See also

PSPP manual for FORMATS


CategoryRicottone

SPSS/Formats (last edited 2023-06-11 21:17:29 by DominicRicottone)