Joined: 15 Dec 2002 Posts: 637 Topics: 43 Location: Bengaluru, INDIA
Posted: Wed Mar 15, 2006 12:19 pm Post subject: Control-M: Trigger jobs in a table from a REXX program.
Hi,
I have created a table of jobs in a scheduling library. The jobs in the table have proper IN and OUT condition that handles the conditional execution of the jobs in that table. My only requirement is to start the starting job in the table dynamically from a REXX program. In other words, 'order all the jobs in the table'. A search in the manuals has not yet provided me an 'API' to do this. Can someone please tell me how to order the jobs in that table from the REXX program ?
One option could be, to code a IN condition using IOACND PROC that will trigger the first job in the table. The IOACND step works for me, but it does not trigger the first job (and, then the others). Also, it seems the IN condition added this way would be the same throughout the Control-M 'subsystem'. Thus, when different users would be using my REXX program, I think, there will be way too much contentions. _________________ ALL opinions are welcome.
Debugging tip:
When you have eliminated all which is impossible, then whatever remains, however improbable, must be the truth.
-- Sherlock Holmes.
Joined: 26 Nov 2002 Posts: 12377 Topics: 75 Location: San Jose
Posted: Wed Mar 15, 2006 1:11 pm Post subject:
Cogito-ergo-sum,
I am not sure if CTMBAPI can be used for this. You can search for the starting job using CTMBAPI and retrieve the job list. The CTMBAPI is explained in the CONTROL-M for z/OS User Guide.
Joined: 15 Dec 2002 Posts: 637 Topics: 43 Location: Bengaluru, INDIA
Posted: Thu Mar 16, 2006 8:43 am Post subject:
CTMBAPI was a very helpful pointer, Kolusu. Thank you.
After some more research and downloading of INCONTROL manuals, I finally came to REXX code in hlq.IOA.SAMPLE called CTMAPI01, that can be used to order jobs and set Control-M variables. Setting of the variables was going to be the next question; but, that REXX code fulfills both of my requirements. _________________ ALL opinions are welcome.
Debugging tip:
When you have eliminated all which is impossible, then whatever remains, however improbable, must be the truth.
-- Sherlock Holmes.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum