Use this field-level keyword to specify a list of values that are valid for the user to type into the field. The OS/400 program performs an implied equals test on the data typed in against the value(s) you specify here. Note that the OS/400 program performs this checking only if the field is changed by the work station user or if its modified data tag (MDT) is set on using DSPATR(MDT).
The format of the keyword is:
VALUES(value-1 [value-2... [value-100]])
There can be 1 to 100 values; specify them as parameter values with the keyword and separate them by at least one blank.
A value can be a numeric or a character value, corresponding in length to the field that is to be tested. A character value must be enclosed in apostrophes. A numeric value is restricted to the digits 0 through 9 and can be preceded by a minus sign (-) for negative values. Alignment is on the low-order character position.
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.