Joined: 29 Jul 2004 Posts: 10 Topics: 6 Location: India
Posted: Fri Jul 30, 2004 4:50 pm Post subject: How to run Specfic step in a JCL based on a value
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... ???
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.
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
Joined: 26 Nov 2002 Posts: 12380 Topics: 75 Location: San Jose
Posted: Mon Aug 02, 2004 8:12 am Post subject:
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
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
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