View previous topic :: View next topic |
Author |
Message |
chagantivamsee Beginner

Joined: 16 Sep 2005 Posts: 6 Topics: 4
|
Posted: Wed Oct 04, 2006 4:32 am Post subject: Time lag between two STEPS. |
|
|
Hi All,
I have a job with 2 Steps, say STEP1 and STEP2. My requirement is that if STEP1 RC = 20, STEP2 should be executed after 10 minutes. If STEP1 RC is anything else, the job should be completed. How can I use the Time lag of 10 minutes exactly?
Please help.
Thanks in Advance,
Vamsee. |
|
Back to top |
|
 |
ofer71 Intermediate
Joined: 12 Feb 2003 Posts: 358 Topics: 4 Location: Israel
|
Posted: Wed Oct 04, 2006 7:24 am Post subject: |
|
|
1. Split it into 2 jobs and use a scheduler.
2. Use REXX between the steps to inquire the RC and to set a delay.
O.
________
AMC Ambassador
Last edited by ofer71 on Sat Feb 05, 2011 11:50 am; edited 1 time in total |
|
Back to top |
|
 |
superk Advanced

Joined: 19 Dec 2002 Posts: 684 Topics: 5
|
Posted: Wed Oct 04, 2006 7:54 am Post subject: |
|
|
Use a UNIX "sleep" command:
Code: |
//STEP0001 EXEC PGM=AOPBATCH,PARM='sh /bin/sleep 600'
//STDOUT DD SYSOUT=*
//STDERR DD SYSOUT=*
//STDIN DD DUMMY
|
|
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Wed Oct 04, 2006 10:26 am Post subject: |
|
|
chagantivamsee,
10 mins a lot to hold up an initiator. I would go with 2 jobs and use the scheduler to delay the second job by 10 mins.
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
chagantivamsee Beginner

Joined: 16 Sep 2005 Posts: 6 Topics: 4
|
Posted: Thu Oct 12, 2006 10:44 pm Post subject: |
|
|
Thanks for your responses. But I can't use a separate job as a fix due to my Project constraints. When am trying to use the UNIX sleep command as suggested by 'superk', it throws a message like this:
AOP003E BIN/SLEEP: EDC5129I No such file or directory., errno2=594003d _________________ Thanks,
Vamsee. |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
|
Back to top |
|
 |
|
|