Sign in

docs RPG Reference

Position 24 (Begin/End Procedure)

Position 24 (Begin/End Procedure)

Free-Form Syntax* Specify the DCL-PROC operation code to begin a procedure. * Specify the END-PROC operation code to end a procedure. See Free-Form Procedure Statement.

Entry : Explanation

B : The specification marks the beginning of the subprocedure being defined.

E : The specification marks the end of the subprocedure being defined.

A subprocedure coding consists minimally of a beginning procedure specification and an ending procedure specification. Any parameters and return value, as well as other definitions and calculations for the subprocedure are specified between the procedure specifications.