pTAL Reference Manual (G06.24+, H06.09+, J06.03+)
Subprocedure Entry-Point Identifiers
Here are guidelines for using subprocedure entry-point identifiers:
• Declare all entry-point identifiers for a subprocedure within the subprocedure.
• Place each entry-point identifier and a colon (:) at a point in the subprocedure at which
execution is to start.
• You call a subprocedure entry-point identifier from anywhere in the encompassing procedure,
including from within the same subprocedure. (For functions, use the entry-point identifier in
an expression; for other subprocedures, use a CALL statement.)
• Pass actual parameters as if you were calling the subprocedure identifier.
• You cannot use a GOTO statement to branch to a subprocedure entry-point identifier.
• To obtain the code address of a subprocedure entry-point identifier, preface the identifier with
@.
• You can specify FORWARD subprocedure entry-point declarations, which look like FORWARD
subprocedure declarations.
262 Procedures, Subprocedures, and Procedure Pointers