REFSHIFT (Reference Shift) Keyword for Physical and Logical Files

Use this field-level keyword to specify a keyboard shift for a field when the field is referred to in a display file or DFU operation.

The format of the keyword is:

REFSHIFT(keyboard-shift)

When defining an input-capable field in a display file, refer to the field you are now defining by specifying the letter R in position 29 and the REF or REFFLD keyword. At display file creation, the OS/400 program copies the REFSHIFT keyword and other field attributes from the field in the logical file into the field in the display file. You can override the editing specified in the display or printer file by specifying new editing keywords. Specifying the DLTEDT keyword deletes all editing for the field. See DDS Reference (Position 29) for details.

The keyboard shift in the display file (position 35) becomes the parameter value specified on this keyword instead of the data type specified in the database file. When you refer to a field with the REFSHIFT keyword from a physical or logical file, the REFSHIFT keyword is copied into the new field. However, if the field attributes (such as data type) specified for the new field are not compatible with the keyboard shift specified on the REFSHIFT keyword, the keyword is ignored.

This keyword is valid for fields with data types A, S, B, or P. Choose any keyboard shift that is compatible with the data type as a parameter value. The following parameters apply to the data types:

Refer to DDS Data Type/Keyboard Shift (Position 35) for more information on the parameters.