Modifying a field

1. From the Field Definitions list, highlight the field you want to modify and press enter. The Field Definition window is displayed, with the tab that you viewed last on top.
2. Modify data as desired on any of the tabs. Note that if you modify the template name, all attributes of the new template are copied to the field, with the exception of any attributes that were explicitly overridden within the field. See the description of Template name for more information. For details on completing the fields on each tab, refer to the relevant section:

Basic field information (Field Definition tab)

Display information

Input information

Validation information

Method information

Assigning a long description to a field (Long Desc tab)

3. Exit the window to save your changes and return to the Field Definitions list.

When you exit, Repository validates the display, input, validation, and method information. If an error exists, correct it and then exit the window again. The SIZE field below the list is updated to reflect any changes made to the structure size.

If the field being modified has group members, but the Group field is not set, when you exit the input window, you are prompted

Field “NAME” is a group. Clearing the “Group” field will delete all group members. Do you want to continue?

If you select Yes, the group members are not saved with the field definition. If you select No, you are returned to the Field Definition tab.

If the field you’re modifying is used as a key segment for the current structure, when you exit the input window, the following message is displayed:

This field is defined as a key. All affected keys in the current structure are updated when you save changes.
Are you sure you want to make modifications?

If the field being modified is used as an external key segment in another structure, when you exit the input window, you are prompted

This field is defined as an external segment by another structure. All affected keys in all external structures are updated when you save changes.
Are you sure you want to make modifications?

Modifying a field that is a key can affect not only the keys themselves but also any relations that use those keys.

If you answer Yes to either of the above prompts, the key size and key data type of all affected keys are updated when you save your changes to the current structure. If you answer No, all of your modifications are ignored.

Modifying group members

1. Highlight the group field in the Field Definitions list.
2. Select Field Functions > Edit Group Members. (You can also press enter to edit the group definition, and then select Edit Field Functions > Edit Group Members while on the primary tab of the input window.)

The Field Definitions list for the group is displayed. If this is an explicit group, you can add, modify, reorder, or delete member definitions. If this is an implicit group, the list is read‑only, and you can only view member definitions. (See figure 1.)

1. The Field Definitions list for a group.

The name of the group is displayed at the top of the list. The number of fields in the group and the total number of fields in the structure are displayed at the bottom of the list.

The following rules apply to groups:

3. To return to the previous Field Definitions list or Field Definition tab, press the Exit shortcut.

When you exit, if the total size of the members exceeds the size of the group field, an error message is displayed and you are returned to the Field Definition tab of the group field. You can either increase the size of the group field or edit the group members individually and modify their sizes.