The following, simplified example calls CTMBLT from another program and passes required control statements to CTMBLT. CTMBLT uses a table in memory to force the MYJOB job.
In this example, a DAINPRM DD statement was not needed to execute the JCL. Usually, situations require CTMBLT control statements to be read from an external file or dynamically constructed into a GETMAIN area within the program. Also, any output normally routed to DD name DATABERR is written to DD name ERROR.
In addition, CTMBLT returns replies from itself and from the CTMJOB utility, which is invoked to perform the job order. For a look at the format of the reply areas, see the CTMBAPO member.
Figure 24 CTMBLT – Example 5
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Parent Topic |