Previous Topic: The $JCLGETM MacroNext Topic: The $JCLRTRN Macro


The $JCLPRTN Macro

This macro generates the termination code for a parameter exit. $JCLPRTN generates code to meet the requirements for returning from a parameter exit. Specify parameter exits in a syntax table (JCLTABLE) through the $VTB macro, using the EXIT=parameter. The $JCLPRTN macro provides many services. It resets registers to their contents on entry, optionally calls an original CA parameter exit, frees all obtained storage, and then returns to CA JCLCheck. Parameter exits always return through register 10. CA JCLCheck ignores the return code specified in register 15.

This macro has the following format:

$JCLPRTN -ca- exitname-
ca-exitname

Guarantees that the exit is performed prior to returning to CA JCLCheck.

If the syntax table contained an original exit name, as EXIT=caname, you need to supply this name as the first positional parameter.

Note: Do not include any comments on this statement.