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 

JCL to be executed depending on another JCL output

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


Joined: 21 Jan 2005
Posts: 52
Topics: 7

PostPosted: Mon Jan 16, 2006 8:35 am    Post subject: JCL to be executed depending on another JCL output Reply with quote

Hello All,

I have 2 jcls A and B. i want to execute B depending on A's retrun code, these are 2 seperate jcls. A is generated by the system. B is already made. No scheduler available. any help is appreciated. did bit of searching.. could'nt find one that meets my case scenario..can anyone help.?

cheers
Back to top
View user's profile Send private message
ofer71
Intermediate


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

PostPosted: Mon Jan 16, 2006 8:43 am    Post subject: Reply with quote

Add additional step to the rnd of A. This step will be entered depending on your return code (use COND or IF).

In this step, you can invoke JCL B in many ways:
- Batch TSO (TMP) with the SUBMIT command
- REXX
- Write to internal reader with IEBGENER
- COBOL
etc.

O.
________
Fetish tubes


Last edited by ofer71 on Thu Mar 17, 2011 10:44 am; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail
kolusu
Site Admin
Site Admin


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

PostPosted: Mon Jan 16, 2006 8:51 am    Post subject: Reply with quote

hariavinash,

Add the step shown in the link below to JOB A with cond code checking

http://www.mvsforums.com/helpboards/viewtopic.php?p=7562#7562

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


Joined: 21 Jan 2005
Posts: 52
Topics: 7

PostPosted: Mon Jan 16, 2006 10:43 am    Post subject: Reply with quote

thank you very much.
cheers
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