Previous Topic

Next Topic

Book Contents

Book Index

AJF Action using Program

When called from a program, the simplest method of requesting the appropriate action against a job is to pass the above statement to CTMAPI as a standard parameter. Alternatively, you can use the conversational mode of the interface, where CTMBAPI area is passed as the parameter, and fields in it identify the request. This mode is described in Conversational Mode using Program.

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

//DAAPI  DD *

AJF HOLD MEM=DEFSCHD1 JOB=JOBA OID=0AS45 ODATE=090601 IF STATE=FREE

Note: The HOLD command for the job is issued only if its prior STATE was FREE.

Parent Topic

3. AJF Actions