PROCEDURE command

The PROCEDURE command allows the definition of a group of commands that can be accessed by using the CALL procedure command. The CALL command is the only way to perform the commands within the PROCEDURE. PROCEDURE definitions remain in effect for the entire debug session.

The PROCEDURE keyword can be abbreviated only as PROC. PROCEDURE definitions can be subcommands of other PROCEDURE definitions. The name of a nested procedure has the scope of only the containing procedure. Session variables cannot be declared within a PROCEDURE definition.

In addition, a procedure must be defined before it is called on a CALL statement.

Read syntax diagramSkip visual syntax diagram
                          .---------.           
                          V         |           
>>-name--:--PROCEDURE--;----command-+--END--;------------------><

name
A valid Debug Tool procedure name. It must be a valid identifier in the current programming language. The maximum length is 31 characters.
command
A valid Debug Tool command other than a declaration or PANEL command.

Usage notes

Examples