RANGE (Range) Keyword for Display Files

Use this field-level keyword for input-capable fields to specify that the OS/400 program is to perform validity checking on the data that the work station user types into the field. The data typed in must be greater than or equal to the lower value, and less than or equal to the higher value. Note that the OS/400 program performs this checking only if the field is changed by the work station user or if its changed data tag (MDT) is set on using DSPATR(MDT).

Note:
Refer to the CHKMSGID keyword for information on defining user-specified error messages.

The format of the keyword is:

RANGE(low-value high-value)

When the field is a character field, the parameter values must be enclosed in apostrophes. When the field is numeric, apostrophes must not be specified.

You cannot specify RANGE on a floating-point field (F in position 35).

Option indicators are not valid for this keyword.