To set formatting options statically in the program, use the FORMAT statement as follows:
Syntax
FORMAT <option1> [ON|OFF] <option 2> [ON|OFF] ....
The formatting options <option
i > set in the FORMAT statement apply to all subsequent output until they are turned off using the OFF option. The ON option to turn on a formatting option is optional, that is, you can leave it out.To set the formatting options dynamically at runtime, use the FORMAT statement as follows:
Syntax
FORMAT <option1> = <var 1> <option 2> = <var 2> ....
The system interprets the variables <var
i > as numbers. Therefore, they should be of data type I. If the contents of <var i > is zero, the variable has the same effect as the OFF option. If the contents of <var i > is unequal to zero, the variable either has the same effect as the ON option or, together with the COLOR option, acts like the corresponding color number (see Colors in Lists).If you use the same formatting options for a WRITE statement that follows the FORMAT statement, the settings of the WRITE statement overwrite the corresponding settings of the FORMAT statement for the current output.
For each new event, the system resets all formatting options to their default values. For a list of events, see
To set all formatting options to OFF in one go, use:
Syntax
FORMAT RESET.
The following sections describe the available formatting options.
Colors in Lists Enabling Fields for Input Outputting Fields as Hotspots