IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Job shud not wait for the step which runs for 12 hrs


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
srini63

New User


Joined: 02 Nov 2006
Posts: 10

PostPosted: Thu Nov 16, 2006 12:59 am
Reply with quote

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
View user's profile Send private message
MFRASHEED

Active User


Joined: 14 Jun 2005
Posts: 186
Location: USA

PostPosted: Thu Nov 16, 2006 1:26 am
Reply with quote

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
View user's profile Send private message
srini63

New User


Joined: 02 Nov 2006
Posts: 10

PostPosted: Thu Nov 16, 2006 1:36 am
Reply with quote

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
View user's profile Send private message
David P

Active User


Joined: 11 Apr 2005
Posts: 106
Location: Cincinnati Ohio

PostPosted: Thu Nov 16, 2006 1:57 am
Reply with quote

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
View user's profile Send private message
srini63

New User


Joined: 02 Nov 2006
Posts: 10

PostPosted: Thu Nov 16, 2006 1:59 am
Reply with quote

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
View user's profile Send private message
MFRASHEED

Active User


Joined: 14 Jun 2005
Posts: 186
Location: USA

PostPosted: Thu Nov 16, 2006 2:21 am
Reply with quote

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
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Thu Nov 16, 2006 9:00 am
Reply with quote

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:
//JOB1
//STEP1
//

Code:
//JOB2
//STEP2
//

Code:
//JOB3
//STEP3
//STEP4
:::
:::
//*

Anyway... Its better to keep a separate job when one step taking 12 Hrs to complete.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Return codes-Normal & Abnormal te... JCL & VSAM 7
No new posts How to append a PS file into multiple... JCL & VSAM 3
No new posts convert file from VB to FB and use tr... DFSORT/ICETOOL 8
No new posts Wait for job rc CLIST & REXX 10
No new posts Forcing a step to run (even if abended) JCL & VSAM 8
Search our Forums:

Back to Top