To Split a One-Segment Identifier into Multiple Segments
If you have created a one-segment identifier (for example, for the SUBACCOUNT segmented key) and then realized that it is more convenient for users if the identifier has more segments, you can split the segment into multiple parts without losing the existing values of the identifier.
In this topic, you will read about how to split a one-segment SUBACCOUNT key into two segments.
To Split a One-Segment SUBACCOUNT Segmented Key into Two Segments
For example, suppose that the SUBACCOUNT key has the following values: AAA000, AAA010, BBB000, and BBB010; also suppose that you need to split the values into two segments of three characters each. To resolve this task, you do the following:
- Add the second segment as follows:
- Open the Segmented Keys (CS202000) form.
- In the Segmented Key ID box of the Summary area, select the SUBACCOUNT segmented key.
- On the table toolbar, click Add Row to add a new segment.
- In the Description column, add a description of the new segment.
- In the Length column, type 3.
- Save your changes.
- Change the existing values of the SUBACCOUNT key as follows:
- Navigate to the Subaccounts (GL203000) form.
- For each subaccount value, move the last three characters of the first segment to the second segment. For example, change AAA000 to AAA___-000.
- Save your changes.
- Change the length of the first segment as follows:
- Navigate to the Segmented Keys form.
- In the Segmented Key ID box of the Summary area, select the SUBACCOUNT segmented key.
- In the Length column of the row with the first segment, type 3.
- Save your changes.
As a result, the SUBACCOUNT key will have the following values: AAA-000, AAA-010, BBB-000, and BBB-010.