Previous Topic: END CommandNext Topic: FILE Command


ENDPROC Command

(Area 3)

The ENDPROC command signals the Reporting Facility to terminate a subroutine. The command must be paired with a PROC command. Any valid Reporting Facility (Area 3) commands can be placed between the PROC and ENDPROC commands.

The format of the ENDPROC command is as follows:

►►─┬──────────┬─ ENDPROC ─────────────────────────────────────────────────────►◄
   └─ label: ─┘
label:

Specifies an optional identifying label that may be referenced in a GOTO command within the limits of the subroutine.

Note the following: