RPG/400 Help


Branching Operations

The branching operations are:

The GOTO operation (when used with a TAG operation) allows branching. For example:

The EXCPT operation allows records to be written during calculation time instead of at output time.

The TAG operation names the label that identifies the destination of a GOTO or CABxx operation.

The ITER operation transfers control from within a DO-group to the ENDDO statement of the DO -group.

The LEAVE operation is similar to the ITER operation; however, LEAVE transfers control to the statement following the ENDDO operation.

See each operation for an explanation of its function.


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