Indicator Format

The indicator format is a special type of character data. Indicators are all one byte long and can only contain the character values '0' (off) and '1' (on). They are generally used to indicate the result of an operation or to condition (control) the processing of an operation. The default value of indicators is '0'.

Start of change You define an indicator field by specifying the IND keyword in a free-form definition or by specifying N in the Data-Type entry of a fixed-form specification. You can also define an indicator field using the LIKE keyword on the definition specification where the parameter is an indicator field. Indicator fields are also defined implicitly with the COMMIT keyword on the file description specification. End of change

A special set of predefined RPG IV indicators (*INxx) is also available. For a description of these indicators, see RPG IV Indicators.

The rules for defining indicator variables are:
The rules for using indicator variables are:
Start of change

CCSID of data in indicator format

Indicators are considered to have CCSID(*JOBRUN).

End of change