The example in Figure 107 demonstrates how a Control-M job can be run in response to the detection of a specific message.
Figure 107 Example of Forcing a Control-M Job
ON MESSAGE = $HASP050
JNAME JTYPE SMFID SYSTEM
ROUTE DESC CONSOLEID CONSOLE
APPEARED TIMES IN MINUTES And/Or/Not
OWNER IOAADMIN GROUP MODE PROD RUNTSEC
THRESHOLD
DESCRIPTION FORCE A CONTROL-M JOB IN RESPONSE TO A MESSAGE
DESCRIPTION JES2 - RESOURCE SHORTAGE
===========================================================================
DO FORCEJOB = TABLE JES2JOBS JOB SYSJES1 UFLOW N DATE ODAT
LIBRARY CTM.SCHEDULE
Explanation
When the $HASP050 message is detected this rule is triggered.
The DO FORCEJOB parameter forces Control-M to run the specified job as a response to this message. The table where the job is found, the job name, and the library where the job is found are indicated in the subparameters of this statement. DO FORCEJOB can only be used if Control-M is installed at your site.
Parent Topic |