ALTER Statement [ HP COBOL II/XL Reference Manual ] MPE/iX 5.0 Documentation
HP COBOL II/XL Reference Manual
ALTER Statement
The ALTER statement is an obsolete feature of the 1985 ANSI COBOL
standard.
The ALTER statement allows you to modify a predetermined sequence of
operations.
Syntax
ALTER {procedure-name-1 TO [PROCEED TO] procedure-name-2}...
Parameters
procedure-name-1 a paragraph containing a single sentence consisting of
a GO TO without the DEPENDING phrase.
procedure-name-2 a paragraph or section in the PROCEDURE DIVISION.
Execution of an ALTER statement modifies the GO TO statement in the
specified paragraphs so that subsequent executions of the modified GO TO
statements cause transfer of control to the section or paragraph named by
procedure-name-2.
For example, the paragraph:
GO-PARA.
GO TO CHECK-SECTION.
is altered to be equivalent to the paragraph:
GO-PARA.
GO TO FINISH-UP.
by the ALTER statement:
ALTER GO-PARA TO PROCEED TO FINISH-UP.
Segmentation Considerations
The ALTER statement must not refer to a GO TO statement that appears in a
section whose segment number is greater than 49 unless the ALTER
statement is in the same segment.
Refer to "MPE XL System Dependencies" in Appendix H for more
information.
MPE/iX 5.0 Documentation