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 

How to run Specfic step in a JCL based on a value

 
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
syedfasi
Beginner


Joined: 29 Jul 2004
Posts: 10
Topics: 6
Location: India

PostPosted: Fri Jul 30, 2004 4:50 pm    Post subject: How to run Specfic step in a JCL based on a value Reply with quote

Hi,

1) I have a Job, which contains 10 steps 1,2....10.. I would like to run only a specifc step based on the previous step return code.. Like if step 1 gave me the return code as "5", then I directly want to run Step 5 alone in the JCL, and all the other steps has to be skipped, if the step 5 gave me the return code as "2", then I want to run only step 2.. and so on...

2) Can I stop my JCL automatically for 10 Minutes before certain step.

3) Can I page from the JCL, to a pager device ???? I know its NOT .NET technology... Just want to know... ???

Thanks for help....
Back to top
View user's profile Send private message MSN Messenger
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Fri Jul 30, 2004 8:40 pm    Post subject: Reply with quote

Please review the JCL Reference Guide:

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IEA2B631/CCONTENTS?DT=20030423085347

for the answers to 1 & 2.

For 3, it MAY be possible, depending on your definition of a page. Are you talking about a numeric page, or text paging? My company is currently looking at BMC's PEM product for just this purpose. We need to be able to contact folks via multiple means (pager, text messaging, instant messaging, email, and especially, by phone), and automatically verify that they have received the message and are responding to it. If not, then we must automatically escalate to the next name on-call until someone is reached and responds.
Back to top
View user's profile Send private message
SureshKumar
Intermediate


Joined: 23 Jan 2003
Posts: 211
Topics: 21

PostPosted: Mon Aug 02, 2004 8:00 am    Post subject: Reply with quote

syedfasi,
just a thought about paging, look at the paging service. My service provides web access number - 999-999-9999 (for phone access) & 999-999-9999@skytel.com (for web access). I use 999-999-9999@skytel.com for some jobs to email/page me when its down. Thanks
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Mon Aug 02, 2004 8:12 am    Post subject: Reply with quote

Syedfasi,

Quote:

1) I have a Job, which contains 10 steps 1,2....10.. I would like to run only a specifc step based on the previous step return code.. Like if step 1 gave me the return code as "5", then I directly want to run Step 5 alone in the JCL, and all the other steps has to be skipped, if the step 5 gave me the return code as "2", then I want to run only step 2.. and so on...


Answer:

a. You can code an IF/THEN/ELSE Construct and only run the desired steps.

Check this link for detailed explanation of IF/THEN/ELSE construct

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IEA2B631/17.0?DT=20030423085347

b. You can also use COND parameter to run the desired steps

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IEA2B631/16.5?DT=20030423085347

Quote:

2) Can I stop my JCL automatically for 10 Minutes before certain step.


Do you mean to stop execuetion of the JOb for 10 minutes? Even though you can code a wait routine to stop the execuetion, you need to remember that you are holding the resources doing nothing. The best way to do it is to put the remaining steps in a new job and have the scheduler trigger it after 10 minutes.

check this link which explains about the wait routine in cobol

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

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
NutCracker
Beginner


Joined: 13 Dec 2002
Posts: 45
Topics: 3
Location: 3rd Block from the SUN

PostPosted: Mon Aug 02, 2004 8:25 am    Post subject: Reply with quote

If your shop has OMEGAMON (of Candle Corp), then your Operators could help you with paging from a Job/JCL

Refer http://www.candle.com/www1/vgn/images/portal/cit_1751/3915987architecture_large.jpg
Back to top
View user's profile Send private message
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