Redefining a Data Item

  1. In the Catalog Explorer, double-click the File Definitions node, then double-click the required file definition.

    The <file-definition-name> tab is displayed.

  2. Right-click the data item in the FD form for which a redefine is needed, then select Add Redefines.

    The Add redefines for <data-item> dialog box is displayed. The options displayed depend on the type of data item selected.

  3. In the COBOL Name field, enter a new data-name for the redefined item.
  4. The Item Type field defaults to the data item type being redefined. If required, click the type and select a different type.

    The remaining options applicable to the type are displayed.

  5. The Length field defaults to the length of the data item being redefined. If required, alter the length of the new item.
  6. The Ref. start field refers to the offset, and defaults to 1 for all types except RM/COBOL (1974) COMP-1 items. If you are redefining one of these types, you can change to offset so that the item is only partially redefined.
  7. In the Numeric section, which is only available for numeric items, change the following values, if required:
    • Precision - specifies the number of decimal digits and is constrained based on the data type and the length selected.
    • Scale - specifies the position of the decimal point from the right end of the new data item in terms of decimal digits. The absolute value of a negative scale factor specifies the number of digits to the right of the decimal point.

    The COBOL data description of the redefined item is displayed, and is updated as you alter the values.

  8. Click Add.

    The redefined item is added to the file definition.

  9. In the Default Column Name column, enter a column name for the redefined item.
  10. Click Save to Catalog.