Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Job shud not wait for the step which runs for 12 hrs
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    Post subject: Re: jcl question
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    Post subject: Re: jcl question
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    Post subject: Re: jcl question
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    Post subject: Re: jcl question
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    Post subject: Re: jcl question
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: 1452
Location: Chicago, IL

PostPosted: Thu Nov 16, 2006 9:00 am    Post subject: Re: jcl question
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Restart=Step not working ALAK SAHA JCL & VSAM 6 Fri Jun 30, 2017 6:28 pm
No new posts Validate date and numeric fields and ... Rick Silvers DFSORT/ICETOOL 6 Thu May 11, 2017 6:51 pm
This topic is locked: you cannot edit posts or make replies. Job to wait and continue based on reply yugendran COBOL Programming 5 Wed Oct 05, 2016 1:46 pm
No new posts Converting multiple VB files to FB fi... Viswanath Reddy JCL & VSAM 6 Mon Aug 08, 2016 11:49 pm
This topic is locked: you cannot edit posts or make replies. JCL MULTIPLE STEP EXECUTION QUERY Susanta JCL & VSAM 18 Sat Jul 30, 2016 1:17 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us