Posted: Mon Jun 20, 2005 3:51 am Post subject: Control-M Related
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....
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...
Joined: 26 Nov 2002 Posts: 12372 Topics: 75 Location: San Jose
Posted: Mon Jun 20, 2005 7:45 am Post subject:
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.
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