MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Control-M: Trigger jobs in a table from a REXX program.

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Other Technical Topics
View previous topic :: View next topic  
Author Message
Cogito-Ergo-Sum
Advanced


Joined: 15 Dec 2002
Posts: 637
Topics: 43
Location: Bengaluru, INDIA

PostPosted: Wed Mar 15, 2006 12:19 pm    Post subject: Control-M: Trigger jobs in a table from a REXX program. Reply with quote

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.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12377
Topics: 75
Location: San Jose

PostPosted: Wed Mar 15, 2006 1:11 pm    Post subject: Reply with quote

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.

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Cogito-Ergo-Sum
Advanced


Joined: 15 Dec 2002
Posts: 637
Topics: 43
Location: Bengaluru, INDIA

PostPosted: Thu Mar 16, 2006 8:43 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Other Technical Topics All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
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


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group