MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Time lag between two STEPS.

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
chagantivamsee
Beginner


Joined: 16 Sep 2005
Posts: 6
Topics: 4

PostPosted: Wed Oct 04, 2006 4:32 am    Post subject: Time lag between two STEPS. Reply with quote

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


Joined: 12 Feb 2003
Posts: 358
Topics: 4
Location: Israel

PostPosted: Wed Oct 04, 2006 7:24 am    Post subject: Reply with quote

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


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Wed Oct 04, 2006 7:54 am    Post subject: Reply with quote

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


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Wed Oct 04, 2006 10:26 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
chagantivamsee
Beginner


Joined: 16 Sep 2005
Posts: 6
Topics: 4

PostPosted: Thu Oct 12, 2006 10:44 pm    Post subject: Reply with quote

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


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Fri Oct 13, 2006 8:48 am    Post subject: Reply with quote

chagantivamsee,

please search before posting. Check this link for delaying the job using cobol

http://www.mvsforums.com/helpboards/viewtopic.php?t=2008&highlight=delay

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group