Previous Topic: CA JCLCheck MacrosNext Topic: Utility Table Macros


Syntax Table Macros

Use the following macros to construct JCL syntax tables:

$KTB (Keyword Table)

Defines keyword subparameters.

This table points to the $J6PCB macros describing each valid keyword.

$J6PCB (Parameter Control Block)

Defines a parameter and provides a name for the parameter.

The actual keyword for keyword parameters. $J6PCB is an eight-character name used in messages, for positional parameters.

This parameter control block points to either a $PTB macro describing the subparameters or to a $VTB macro describing the parameter's valid values.

$PTB (Pointer Table)

Defines a parameter that includes subparameters.

This table points to the $J6PCB macros defining any positional subparameters and optionally points to a $KTB macro to define any keyword subparameters.

$VTB (Value Table)

Defines valid values for a parameter.

The value table controls the validation of the parameter's operand, indicates whether to save the operand, and indicates whether an exit routine exists for the parameter.

All tables begin with a $PTB macro and use other macros as they apply. The following sections describe the syntax of these macros. To clarify their use, examine the tables in the CA JCLCheck Macro library or the parameter CSECTs (JOBACTG, ROUTETBL, and DESTTBL) described earlier in this chapter.

The macros use predefined assembler tag names in their expansion. Provide these names by coding a macro as follows:

$JCLCB	 PCB,PTB,VTB,KTB

This macro generates the DSECTs CA JCLCheck requires for any syntax table assembly.

Note: When adding to or modifying a table, refer to a similar entry within the table as a model for your changes.