COBOL/400 Language Help

Format 2 (Conditional GO TO)

Description
The conditional GO TO statement transfers control to one of a series of procedures, depending on the value of the identifier. The maximum number of procedure-names for a conditional GO TO statement is 255.
Format 2 (Conditional GO TO)
 
              *---------------*
              V               +
->->---GO-*--*--procedure-name-1*-DEPENDING--*--*-identifier--><-
        *TO*                               *ON*

procedure-name-1

Procedure-name-1 must be a procedure or a section in the same Procedure Division as GO TO.

Identifier

Identifier must be a numeric elementary data item which is an integer.


[ Top of Page | Previous Page | Next Page | Table of Contents ]