Unconditional GO TO

The unconditional GO TO statement transfers control to the first statement in the paragraph or section identified by procedure-name, unless the GO TO statement has been modified by an ALTER statement.

For more information, see ALTER statement.

Format 1: unconditional GO TO statement

Read syntax diagramSkip visual syntax diagramGOTOprocedure-name-1

procedure-name-1
Must name a procedure or a section in the same PROCEDURE DIVISION as the GO TO statement.

When the unconditional GO TO statement is not the last statement in a sequence of imperative statements, the statements following the GO TO are not executed.

When a paragraph is referred to by an ALTER statement, the paragraph must consist of a paragraph-name followed by an unconditional or altered GO TO statement.