CONST


 

The CONST compiler directive allows assignment of a Data Definition Label to a numeric value. The label may be used as numeric literals or numeric constants. The instruction uses the following format:

 

 

label

CONST

{value}

 

Where:

label

Required. A Data Definition Label.

value

Required. A numeric value used in place of the label.

Flags Affected: NONE

Note the following:

  1. The value of {value} may be any valid numeric value in the range of zero (0) to 4294967295 (0xFFFFFFFF).

  2. If a user specifies a value larger than the maximum, a warning is given. In that case, the CONST can still be used for any PL/B instructions where a FORM variable syntax form is allowed.

  3. {label} may be used any place a numeric literal or decimal constant is allowed.

 

 

See Also: Example Code, EQUATE, DEFINE, Compiler Directives

 



PL/B Language Reference CMPVER DEFINE