FORMATS

FORMATS changes variable print and write formats. Print and write formats are output formats. Print formats, also called display formats, control the form in which values are displayed by a procedure or by the PRINT command; write formats control the form in which values are written by the WRITE command.

FORMATS varlist(format) [varlist...]

This command takes effect immediately. It does not read the active dataset or execute pending transformations. See the topic Command Order for more information.

Example

FORMATS SALARY (DOLLAR8) / HOURLY (DOLLAR7.2) / RAISE BONUS (PCT2).

Variable formats can also be specified from the Variable View tab.