View previous topic :: View next topic
|
Author |
Message |
Anurag Singh
New User
Joined: 20 Jan 2008 Posts: 25 Location: India
|
|
|
|
Hi All,
With Regards to below given Job , please clarify my doubt ,
//MASTERJB joBCARD
//STEP1 EXEC PGM=IEBEDIT
//SYSPRINT DD DUMMY
//SYSUT1 DD DSN=ABC.TEST.CNTL(jOB1)
//SYSUT2 DD SYSOUT=(*,INTRDR)
//SYSIN DD DUMMY
Now here once the MASTERJB will be submitted, then under step1 member JOB1 of dataset ABC.TEST.CNTL will be submitted through INTRDR,
In SPOOL we can see the Return code of Step1 , but i want to capture the Return code of JOB (JOB1) submitted under Step1 through INTRDR and based on thr RC of JOB1 , i want to execute next step in the MASTERJB.
Could anyone guide me, how to perform this ?? |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
it cannot be done !
if You have a scheduler why not use its facilities ? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
You cannot do that with jcl.
I suggest you re-think the implementation of your requirement.
One way would be to have MASTERJB end once JOB1 is submitted. Then either add additonal steps to JOB1 to be run conditionally or have another submit step that would conditionally run when the rc is as you need.
Is there some reason to submit JOB1 rather than just including the JOB1 process(es) in MASTERJB to be run conditionally?
Also, do not post the same question multiple times - it merely adds clutter and often these are deleted unanswered. . . |
|
Back to top |
|
|
|