View previous topic :: View next topic
|
Author |
Message |
Vedam
New User
Joined: 24 Apr 2007 Posts: 23 Location: India
|
|
|
|
hi,
There are 3 steps in a JCL. I have a requirement wherein the 3rd step has to be executed a bit later than the first 2 steps. Is there any method by which I can put step3 into a delay state of say 5 mins? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Why not schedule your jobs properly.
Why hold an initiator and stop other work from processing.
What is the requirement that demands this mode of working ? |
|
Back to top |
|
|
Vedam
New User
Joined: 24 Apr 2007 Posts: 23 Location: India
|
|
|
|
Instead of creating a new JCL and scheduling it, if we can put a delay for a step, that would be better. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Quote: |
Instead of creating a new JCL and scheduling it, if we can put a delay for a step, that would be better. |
Yeah, waste the resource of an initiator and possibly stop others from running their jobs. Possibly consume copious amounts of CPU cycles depending on the method chosen of initiating the wait process.
That would be better - Yes, for you, but NOONE ELSE.
How long will it take you to create a new JCL and schedule it. Probably less time than you want to waste every time that this job runs. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
What happens when the 5 minute delay is not enough - something interferes with the "normal" timing of the processes this job is waiting on? Ooops.
As suggested by expat, proper scheduling is a better choice.
Another of the (continually growing) list of things that can be done, but should not be done in a production environment. "Sleeping" for a while and then running then "sleeping" again is fine for some "polling" task that has dedicated resources, but is a poor choice for a regular batch job. |
|
Back to top |
|
|
acevedo
Active User
Joined: 11 May 2005 Posts: 344 Location: Spain
|
|
|
|
expat wrote: |
That would be better - Yes, for you, but NOONE ELSE.
|
sorry, I'm disagree: : FOR NOONE.
|
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
I must have had an eye / finger / brain comms failure at the point where I typed it in. It's something that comes with age .............. |
|
Back to top |
|
|
elayadath
New User
Joined: 02 Dec 2005 Posts: 9 Location: USA
|
|
|
|
Pls check the below . This will work in our shop.
//STEP2
//DELAY EXEC PGM=EXCMDWP,PARM='00000500,D T'
//STEP3
THIS WILL HALT 500 SEC TO START STEP3 |
|
Back to top |
|
|
|