GLB.MIN and GLB.MAX

The pseudo values Glb.Min and Glb.Max are used in the INITIALIZE command to set the specified numeric variable to the lowest or highest possible value respectively.

These constants are created as Glb.Min and Glb.Max. Glb.Max sets numeric-primitives to all 9s and Glb.Min sets all unsigned number-primitives to zero, and all signed number-primitives to negative all 9s. For example, if MyNum is a numeric variable, then:

Move Glb.Max MyNum

will move all '9's (9999…) to MyNum,

Move Glb.Min MyNum

will move all '0's (0000…) to MyNum,

Glb.Min and Glb.Max might be used anywhere a literal might be used.

When Glb.Min and Glb.Max are used with Group variables, the appropriate numeric values are moved to each of the Group members depending upon its type as is currently the case when they are used in the INITIALIZE command.

The specific runtime implementation might differ from platform to platform but the logical effect is still maintained.

Note: When used as values for profile keys, Glb.Min and Glb.Max values can be only used for profile keys defined as Numeric. Usage of Glb.Max and Glb.Min as values for profile keys defined as strings is not allowed.