View previous topic :: View next topic
|
Author |
Message |
srini63
New User
Joined: 02 Nov 2006 Posts: 10
|
|
|
|
I have a jcl and in that jcl there is one step which is a long running step..lets say that step runs for 12 hrs..I have some other steps below this step..
All I want is, the job shud not wait for the step which runs for 12 hrs...it shud run the below steps as well parallely..
Thanks,
Srini. |
|
Back to top |
|
|
MFRASHEED
Active User
Joined: 14 Jun 2005 Posts: 186 Location: USA
|
|
|
|
1. You have to take these steps out and trigger another job if dataset is available to run seperately. Remove steps from this long running job and put in another job.
2. If steps are expecting a dataset from same job, then once this dataset is available you can trigger another job from same job. Just before long running step starts. |
|
Back to top |
|
|
srini63
New User
Joined: 02 Nov 2006 Posts: 10
|
|
|
|
MFRASHEED wrote: |
1. You have to take these steps out and trigger another job if dataset is available to run seperately. Remove steps from this long running job and put in another job.
2. If steps are expecting a dataset from same job, then once this dataset is available you can trigger another job from same job. Just before long running step starts. |
Its not dependent on the dataset, the next step is going to run with a different dataset. but when this step is running how can i trigger the next job? dont i need to wait till this step completes to go to the next step which will trigger the next job? |
|
Back to top |
|
|
David P
Active User
Joined: 11 Apr 2005 Posts: 106 Location: Cincinnati Ohio
|
|
|
|
Correct me if I am wrong here, but can't you achieve what you want by flipping the steps.
What I mean is put the current second step as the first one and the current first one as second if there is no dependency in them.
David P. |
|
Back to top |
|
|
srini63
New User
Joined: 02 Nov 2006 Posts: 10
|
|
|
|
David P wrote: |
Correct me if I am wrong here, but can't you achieve what you want by flipping the steps.
What I mean is put the current second step as the first one and the current first one as second if there is no dependency in them.
David P. |
No I want the step to run only after the long running step starts, so I cant swap it... |
|
Back to top |
|
|
MFRASHEED
Active User
Joined: 14 Jun 2005 Posts: 186 Location: USA
|
|
|
|
I don't think you can do that in same job, meaning just maker other steps to execute while prior step is running.
What you can do in same job, is take other steps put it in a new job and trigger new job it using SASSTRLR CA-7 module before long running step starts.
But as you said, if next steps are not waiting for datasets then take these steps out and put in another job or create a new job and trigger new job whenever it needs to run. |
|
Back to top |
|
|
priyesh.agrawal
Senior Member
Joined: 28 Mar 2005 Posts: 1448 Location: Chicago, IL
|
|
|
|
In accord to what Rasheed said...
Let's Say... Here is your current job sequence...
Code: |
//JOB
//STEP1
//STEP2 <<Takes 12 Hrs to get completed>>
//STEP3 <<Doesnt need to wait for STEP2 completion>>
//STEP4
:::
:::
//* |
Make it like three jobs like below... and trigger JOB2 & JOB3 after completion of JOB1.
Code: |
//JOB3
//STEP3
//STEP4
:::
:::
//* |
Anyway... Its better to keep a separate job when one step taking 12 Hrs to complete. |
|
Back to top |
|
|
|