REDEFINES (REDEF, RED)


The REDEFINES command controls whether data item redefinitions are displayed.

The command is available in the Browse and Edit functions in Formatted and Vertical Formatted modes.

image2021-6-4_10-51-50.png

ON

Displays data item redefinitions as they occur in the record layout. Each redefinition is preceded with an information line that indicates the name of the redefinition and the name of the data item being redefined. Multiple redefinitions are displayed in sequence, with an information line preceding each redefinition.

OFF

Does not display data item redefinitions. Only one definition of each storage area is displayed. Use the DISPLAY REDEF command to select between multiple definitions when the REDEFINES value is OFF.

Guidelines

Use the PROFILE command to display the current REDEFINES value.

By default, the first definition of an area of storage is displayed and no redefinitions are displayed.

The following figure shows a record layout used to show the effect of the REDEF display option. When data formatted according to this record layout is displayed with REDEF set OFF, only the first definition displays, as shown in Display with REDEF OFF Setting. When the REDEF ON is set, the redefinition displays (preceded by an information line) as shown in Display with REDEF ON Setting.

Source Layout with REDEFINES Clauseimage2021-3-19_18-3-43.png

Display with REDEF OFF Settingimage2021-3-19_18-4-3.png

Display with REDEF ON Settingimage2021-3-19_18-4-24.png

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*