| Introduction | MTB Statements | File System | Compiler | Applications | Reference Guide | Index |
| Language Structure | Data Division | I/O Format Division | Procedure Division | Mnemonics |
| Syntax: | EXITTO level-number [,EXCP=statement-label] | |
| Discussion: |
The EXITTO statement returns control to the calling program at the
specified level-number.
Level-number is a numeric constant or varaible (length/precision = 2.0) equal to the value of the ENTERLEVEL system variable to which you wish to exit. For example, if a subprogram is running at level 5 (i.e., ENTERLEVEL = 5) and wants to return to level 2 (i.e., ENTERLEVEL = 2), the following statement would be used:
Also see: | |
| Example 1: |
| |
| Example 2: |
|