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

Can we put a step in JCL into delay state?


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

New User


Joined: 24 Apr 2007
Posts: 23
Location: India

PostPosted: Thu May 10, 2007 3:51 pm
Reply with quote

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

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu May 10, 2007 3:54 pm
Reply with quote

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

New User


Joined: 24 Apr 2007
Posts: 23
Location: India

PostPosted: Thu May 10, 2007 3:58 pm
Reply with quote

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

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu May 10, 2007 4:01 pm
Reply with quote

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

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Thu May 10, 2007 4:27 pm
Reply with quote

Look here at this previous topic.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu May 10, 2007 8:42 pm
Reply with quote

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

Active User


Joined: 11 May 2005
Posts: 344
Location: Spain

PostPosted: Thu May 17, 2007 3:34 pm
Reply with quote

expat wrote:

That would be better - Yes, for you, but NOONE ELSE.


sorry, I'm disagree: : FOR NOONE.

icon_wink.gif
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu May 17, 2007 3:43 pm
Reply with quote

I must have had an eye / finger / brain comms failure at the point where I typed it in. icon_eek.gif It's something that comes with age ..............
Back to top
View user's profile Send private message
elayadath

New User


Joined: 02 Dec 2005
Posts: 9
Location: USA

PostPosted: Tue May 22, 2007 8:25 pm
Reply with quote

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
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 Limiting delay with GETMSG CLIST & REXX 11
No new posts convert file from VB to FB and use tr... DFSORT/ICETOOL 8
No new posts Forcing a step to run (even if abended) JCL & VSAM 8
Search our Forums:

Back to Top