Page 1 of 1

Wait in a JCL

PostPosted: Thu Jan 07, 2010 8:03 pm
by sachanambardar
Hi,
I want my JCL to wait betewwn STEP10 & STEP20 for 10 min.
How can i proceed?
Regards,
Sachan

Re: Wait in a JCL

PostPosted: Thu Jan 07, 2010 8:30 pm
by MrSpock
I don't recommend doing this and tying up an initiator for no real reason, but there is the Unix System Services "sleep" command that will work for this. Or, you can code up your own program, unless your shop already has something available.

Re: Wait in a JCL

PostPosted: Fri Jan 08, 2010 12:45 am
by dick scherrer
Hello and welcome to the forum,

I want my JCL to wait betewwn STEP10 & STEP20 for 10 min.
Your want does not justify this rather terrible implementation. Not many of these and the entire system would be hanging in a wait state. . .

Why do you believe you need to wait for 10 minutes. . .?

Re: Wait in a JCL

PostPosted: Fri Jan 08, 2010 12:40 pm
by sachanambardar
Thanks so much for responding.

I have got a job with two setps. The STEP10 brings the system DOWN and then UP, and SEEP20 runs a program but sometimes fails saying system is still down. THus i want to introduce a Wait between both the steps to avoid such failures.

Re: Wait in a JCL

PostPosted: Sat Jan 09, 2010 2:34 am
by dick scherrer
Hello,

Doing this using the scheduling software or an automation product would be far better. . .

Specifics wouild depend on what tools are used on your system.