View previous topic :: View next topic |
Author |
Message |
hariavinash Beginner
Joined: 21 Jan 2005 Posts: 52 Topics: 7
|
Posted: Mon Jan 16, 2006 8:35 am Post subject: JCL to be executed depending on another JCL output |
|
|
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 |
|
 |
ofer71 Intermediate
Joined: 12 Feb 2003 Posts: 358 Topics: 4 Location: Israel
|
Posted: Mon Jan 16, 2006 8:43 am Post subject: |
|
|
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 |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12385 Topics: 75 Location: San Jose
|
|
Back to top |
|
 |
hariavinash Beginner
Joined: 21 Jan 2005 Posts: 52 Topics: 7
|
Posted: Mon Jan 16, 2006 10:43 am Post subject: |
|
|
thank you very much.
cheers |
|
Back to top |
|
 |
|
|