Previous Topic

Next Topic

Book Contents

Book Index

Order or Force Using Program

When called from a program, the simplest method of requesting a job order is to pass the Order statement to CTMAPI as a standard parameter. Alternatively, you can use the conversational mode of interface, where the CTMBAPI area is passed as the parameter, and fields in it identify the request. This mode, which is described in Conversational Mode using Program, is most useful when the calling program requires a reply to be returned to it, for example, to keep track of the Order ID of ordered jobs.

The following statement is an example of the standard method of executing CTMAPI in batch job and passing it an Order request:

//DAAPI  DD *

ORDER DSN=CTM.PROD.SCHEDULE MEM=DEFSCHD1 JOB=JOBA ODATE=ODATE

Parent Topic

1. Order or Force Existing Jobs