### 5.4.1.3 Control Transfers in DO Loops

In a nested DO loop, you can transfer control from an inner loop to an outer loop. However, you cannot transfer control from an outer loop to an inner loop.

If two or more nested DO loops share the same terminal statement, you can transfer control to that statement only from within the range of the innermost loop. Any other transfer to that statement constitutes a transfer from an outer loop to an inner loop because the shared statement is part of the range of the innermost loop.

Previous Page Next Page Table of Contents