Job processing step and code event criteria that determine whether the accompanying DO statements are performed.
For more information, see STEP RANGE: Post–Processing Parameter.
Figure 259 ON PGMST Parameter Format
Optional. ON PGMST statements define event criteria that identify specific Control-M job steps and possible codes that result from the execution of those job steps.
The ON PGMST statement consists of the subparameters described in Table 201. When used, at least one step and one code must be specified.
Table 201 ON PGMST Subparameters
Subparameter |
Description |
---|---|
PGMST |
Job step. The execution results of the program executed by the job step are checked against the specified CODES criteria. From 1 through 8 characters. Mandatory. Valid values are:
|
PGMST |
Note: Some third party products produce JCL step names that begin with an * (asterisk) character. If you specify a JCL step name of this type in an ON PGMST statement, Control-M interprets this step name as a step range. The solution is to define a workaround step range that includes only the problematic step name. For example, to process the step name *OMVTEX, use the following: STEP RANGE ONESTEP FR (PRM.PROC) *OMVTEX . TO *OMVTEX ON PGMST *ONESTEP PROCST CODES xxxxx |
|
|
Note: The $FIRST and $LAST values have these special meanings only if the LASTSTEP parameter in the CTMPARM member is set to Y. Neither Control-M/Restart steps nor FLUSHed steps are considered the first or last step for this purpose. |
|
PROCST |
Procedure step (EXEC statement) that invokes a procedure from which the specified PGMST program is executed. 1 to 8 characters. Optional. Valid values are:
|
CODES |
Return codes or statuses that can satisfy the step or code event criteria if returned upon termination of the specified job steps. At least one code must be specified. CODES can be condition codes, user abend codes, system abend codes, various end codes and statuses, and certain keywords. CODES are discussed in "General Information for ON PGMST," immediately below this table. |
A/O |
Optional. Specifying either A (And) or O (Or) opens a new ON PGMST statement in the ON PGMST block (described in "Multiple ON PGMST Statements and ON PGMST Blocks" below this table) and links the new statement to the statement containing the A/O specification, as follows:
|
Parent Topic |