The Control-M Application Program Interface (CTMAPI) is an open interface between the application environment and Control-M. CTMAPI enables your application program to interface with Control-M so that you can access services and extract data from Control-M into your own programs.
CTMAPI is open to all application environments. It can be called from the following programs or environments:
However, not all functions of the API are applicable to all environments.
The API can call the CTMAPI module and pass it requests through either of the following:
COBOL examples:
To perform a job order (with FORCE), in the Working-Storage section code:
01 WS-CONTROLM-PARMS.
05 PARM-LENGTH PIC 9(4) COMP VALUE 80.
05 PARM-VALUE PIC X(80) VALUE
'ORDER DDNAME=ddname MEMBER=table-name JOB=job-name FORCE'.
In the Procedure division code:
CALL 'CTMAPI' USING WS-CONTROLM-PARMS.
IF RETURN-CODE IS GREATER THAN 0 THEN GO TO error-routine.
These methods, functions and conversational mode, are explained in more detail in this appendix.
Parent Topic |