The assigned GO TO statement branches to a statement label identified by the assigned label value of a variable.
Integer variable name
Statement label of an executable statement
Execution proceeds as follows:
i must be assigned by an ASSIGN statement in the same program unit as the GO TO statement.
i must be INTEGER*4 or INTEGER*8 , not INTEGER*2 .
s must be in the same program unit as the GO TO statement.
The same statement label can appear more than once in a GO TO statement.
The statement control jumps to must be executable, not DATA , ENTRY , FORMAT , or INCLUDE .
Control cannot jump into a DO , IF , ELSE IF , or ELSE block from outside the block.
Example: Assigned GO TO :
ASSIGN 10 TO N . GO TO N ( 10, 20, 30, 40 ) . 10 CONTINUE . 40 STOP