ENDPROC

ENDPROC is used to end user PROCs.

ENDPROC [<name of PROC>] ;

Usage

ENDPROC takes one (optional) argument, the name of the PROC to which it belongs. Every PROC statement must have an associated ENDPROC statement somewhere following in the program. PROCs may be nested to any level, but if there is an ENDPROC statement missing for one of them, a fatal error will be trapped.

ENDP or END PROC are synonyms for ENDPROC.