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
 

 

Can we put a step in JCL into delay state?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Can we put a step in JCL into delay state?
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: 8593
Location: Back in jolly old England

PostPosted: Thu May 10, 2007 3:54 pm    Post subject:
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    Post subject: Re: Can we put a step in JCL into delay state?
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: 8593
Location: Back in jolly old England

PostPosted: Thu May 10, 2007 4:01 pm    Post subject:
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

Moderator Team Head


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

PostPosted: Thu May 10, 2007 4:27 pm    Post subject: Re: Can we put a step in JCL into delay state?
Reply with quote

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

Site Director


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

PostPosted: Thu May 10, 2007 8:42 pm    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Thu May 17, 2007 3:43 pm    Post subject:
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    Post subject: Re: Can we put a step in JCL into delay state?
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    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
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
No new posts Single step utility for compare and u... ramprakashn JCL & VSAM 5 Fri Apr 29, 2016 3:43 pm


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