Segmentation considerations
A GO TO statement that is coded in an independent segment must not be referenced by an ALTER statement in a segment with a different priority-number. All other uses of the ALTER statement are valid and are performed even if the GO TO referenced by the ALTER statement is in a fixed segment.
Altered GO TO statements in independent segments are returned to their initial state when control is transferred to the independent segment that contains the ALTERED GO TO from another independent segment with a different priority-number.
This transfer of control can take place because of:
- The effect of previous statements
- An explicit transfer of control with a PERFORM or GO TO statement
- A sort or merge statement with the INPUT or OUTPUT phrase specified