Previous Topic

Next Topic

Book Contents

Book Index

Control-M Exits and Simulation Processing

The Control-M Simulation and Forecasting facility functions in much the same way as the Control-M monitor, but is activated without performing "real I/O." Therefore, some of the exits activated under the Control-M monitor are also activated during simulation.

Exit CTMX003 (output scanning) is invoked once for each job. The exit does not receive any sysout. Since the simulation assumes that each job ended execution with a condition code of 0, this exit can also be used to add events for certain jobs that end with a nonzero condition code that influences the job flow.

Exit CTMX002 is not activated in simulation mode.

If the same exit is to be used in both the production and simulation environments, it may be necessary to determine which environment is currently active. The MCTSMIND field in the MCT can be checked as follows to determine whether the exit is running under simulation:

TM     MCTSMIND,MCTSIMYS      ARE WE UNDER SIMULATION?

BO     SKIPPROD               YES, SKIP PRODUCTION LOGIC

Parent Topic

Simulation Procedure CTMSIM