At the field level, this keyword specifies validity checking for the field you are defining when it is referred to later during display file creation.
RANGE does not affect the physical or logical file you are defining. When you define an input-capable field in a display file, you can refer to the field you are now defining by specifying R in position 29 and the REF or REFFLD keyword. During display file creation, the OS/400 program copies the RANGE keyword and other field attributes from the field in the physical or logical file into the field in the display file. You can override the RANGE keyword (as well as all other validity-checking keywords and the CHKMSGID keyword) by specifying any validity checking keyword for the field in the display file. See the Reference for display files topic for details.
The rules for specifying this keyword in a physical or logical file are the same as for a display file. See the RANGE keyword for display files for more information and an example that shows how to specify the keyword.
You cannot specify the RANGE keyword on a floating-point field (F in position 35) or a hexadecimal field (H in position 35). Do not specify the RANGE keyword on a date, time, or timestamp field (L, T, or Z in position 35).
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.