By default, the value of parameter MAXCCOK in CTMPARM (default = 04) sets the highest Condition Code that will be considered OK by Control-M. Customers often need to override the MAXCCOK setting for specific jobs or jobsteps. This can be done in their Control-M Job Scheduling Definitions, using ON PGMST logic, for example... ON PGMST ANYSTEP PROCST CODES <C0008 A/O
DO OK
... wil cause the job in question to end OK if it gets any CC lower than 08.
However, this ON PGMST logic will do nothing at all:
ON PGMST ANYSTEP PROCST CODES >C0007 A/O
DO NOTOK
That is because it does NOT override MAXCCOK. It only tells Control-M that a Condition Code of 08 or above is NOT OK... which it already knows. But it does NOT imply that Condition Codes of 05-07 are OK.
|
Legacy ID:KA417139 Always code ON PGMST logic to tell Control-M exactly what you want to. Do not assume that telling Control-M what is OK will imply what is NOT OK, or vica versa. ON PGMST / CODES / DO logic does not set a new level for MAXCCOK. It only provides additional instructions that can be used to contradict MAXCCOK for specific jobs and jobsteps. Please note that logic for 'PGMST ANYSTEP' will affect the entire job (all steps). To code overrides for specific jobsteps, please code the exact name of the PGMST (and PROCST, if appropriate) in the logic block. |