Wait in a JCL



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

Wait in a JCL

Postby sachanambardar » Thu Jan 07, 2010 8:03 pm

Hi,
I want my JCL to wait betewwn STEP10 & STEP20 for 10 min.
How can i proceed?
Regards,
Sachan
sachanambardar
 
Posts: 2
Joined: Thu Jan 07, 2010 7:55 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Wait in a JCL

Postby MrSpock » Thu Jan 07, 2010 8:30 pm

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.
User avatar
MrSpock
Global moderator
 
Posts: 807
Joined: Wed Jun 06, 2007 9:37 pm
Location: Raleigh NC USA
Has thanked: 0 time
Been thanked: 4 times

Re: Wait in a JCL

Postby dick scherrer » Fri Jan 08, 2010 12:45 am

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. . .?
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: Wait in a JCL

Postby sachanambardar » Fri Jan 08, 2010 12:40 pm

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.
sachanambardar
 
Posts: 2
Joined: Thu Jan 07, 2010 7:55 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Wait in a JCL

Postby dick scherrer » Sat Jan 09, 2010 2:34 am

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.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times


Return to JCL