Control-O AutoEdit variables embedded in the TABLE, JOB, DATE, and LIBRARY subparameters are automatically resolved (replaced) at time of rule activation. For more information about the AutoEdit Facility, see Chapter 4, "AutoEdit Facility."
DO FORCEJOB schedules a job under Control-M even if the date is not specified as a scheduling date in the Basic Scheduling parameters of the job. It is similar to the FORCE option in the Control-M Table List screen.
When forcing all jobs in a table, the UFLOW subparameter enables you to determine whether the jobs are run as a unique flow.
If the Control-M monitor is active, the DO FORCEJOB statement is executed by the Control-M monitor.
If the Control-M monitor is not active, the DO FORCEJOB statement is queued and is performed when the Control-M monitor becomes active.
If Control-M is not installed, ordering a rule containing a DO FORCEJOB statement fails with an error message.
DO FORCEJOB can also function similarly to the Control-M CMEM facility. The purpose of the CMEM option in Control-M is to permit Control-M to control jobs that are not submitted by Control-M, or to order new Control-M tables, based on the appearance of a job on spool. The Control-O DO FORCEJOB statement permits ordering of such jobs into Control-M based on the appearance of a message.
Control-O handles DO FORCEJOB statements differently for JOBARRIVAL events and messages, JOBEND events and messages, and all other messages. The differences in handling are explained below. For more information, see the discussion of ON SPOOL jobs in the CMEM chapter of the Control-M for z/OS User Guide.
A DO FORCEJOB statement can be distributed to Control-O on a remote system that is identified through the %%$COMMSYS reserved user-defined variable in a preceding DO SET statement. For more information, see the description of %%$COMMSYS in Reserved User-Defined Variables, and Performing an Action on Another System ctoug3
The DATE field
When either ?, DATE?, or ODAT? are used in the DATE field to check the status of the job, the values returned can be accessed by using the following variables:
For more information on these variables, see AutoEdit Facility.
Note: When ? is used in the DATE field, the rule uses an internal DO WAIT TIMEOUT 0 statement in order to force the rule to be processed under the Control-O monitor. The Control-O monitor is where all the relevant data required by the Control-M interface is accessible.
JOBEND Rules or $HASP395/IEF404I Messages
DO FORCEJOB actions specified in a JOBEND Event rule or in a Message rule triggered by $HASP395 (under JES2) or IEF404I (under JES3) are executed only if the terminating job is not under Control-M control. The JOBEND Event rule in this case will not cause a job to be put in WAIT SCHEDULE ON SPOOL state.
JOBARRIVAL Rules or $HASP100 or IAT6101 Messages
$HASP100 or IAT6101 messages indicate the appearance of a job on spool. The process for these messages is the same as the process for Control-M CMEM JOBARRIVAL event. When $HASP100 or IAT6101 is indicated in the ON MESSAGE statement in a rule definition, Control-O intercepts such messages as follows:
Other Messages and Events
Messages other than those produced by JOBEND and JOBARRIVAL rules are handled by Control-O as follows:
Parent Topic |