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 Related

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


Joined: 16 May 2004
Posts: 68
Topics: 26

PostPosted: Mon Jun 20, 2005 3:51 am    Post subject: Control-M Related Reply with quote

Hi

We use control-m to schedule our jobs. I have a requirement as follows.

I have 5 jobs, say J1, J2 ... J5. I need to write a COBOL program such that it starts these jobs depending on some input parameter. For example, if input to my COBOL is A, then J1, J2 and J4 should run.

If input to my COBOL is B, then J1, J2, J3 and J5 should run.

If input to my COBOL is C, then J2, J4 and J5 should run. so on....

Can I control this job sequence from COBOL or is there any other way for achieving this in control m it self....

Please help...

Thanks in advance
Sridhar P
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Mon Jun 20, 2005 4:39 am    Post subject: Reply with quote

psridhar,

Define 3 schedules for the J1.

Code:

SCHD-id #1 will trigger j2 and J4

Schd-id #2 will trigger j2,j3 and J5

Schd-if #3 will trigger j2,j4 and j5


In your cobol program depending on the input you will generate control cards for the respective schedule and submit the job.

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
psridhar
Beginner


Joined: 16 May 2004
Posts: 68
Topics: 26

PostPosted: Mon Jun 20, 2005 5:33 am    Post subject: Reply with quote

Hi Kolusu,

Thanks for the reply.

Now we are following the logic such that we define different FORMs for the same program and link them as we want. For example,

If input is A, then activate the series JA1 - JA2 - JA4

If input is B, then activate the series JB1 - JB2 - J3 - JB5

If input is C, then activate the series JC2 - JC4 - JC5

Where JA1, JB1 and JC2 etc.. are FROM names.

Now this possible combinations with in my 11 jobs are growing huge such that I can not define one series of FORMs for every new input.

I want to write a driver program which desides the next job to be submitted in Control - M based on its input.

It's just my solution to the problem. It is possible to achieve it. If not, please provide me with another solution which avoids the multiple FORM definitions...

Thanks in advance
Sridhar p
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Mon Jun 20, 2005 7:45 am    Post subject: Reply with quote

Psridhar,

Here is alternative way of solving your problem.

Add a first step in all your jobs J1 J2 J3 J4 and J5 which runs a cobol program and determines the input file and then runs/skips the steps in the jobstream.

ex:

J1 receives JA1 as the form name, now j1 will trigger J2, it then, the first step in J2 checks if the input form is JA1 and sets a return code so that it will eiter run all the steps in J2 or skip all the steps in J2. Similary , this is done in all the jobs.

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
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