IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to capture the RC of JOb Submitted through INTRDR


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Anurag Singh

New User


Joined: 20 Jan 2008
Posts: 25
Location: India

PostPosted: Sun Mar 16, 2008 11:11 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Mar 17, 2008 12:13 am
Reply with quote

it cannot be done !

if You have a scheduler why not use its facilities ?
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Mar 17, 2008 5:13 am
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Rexx to capture output from TSO HSEND... CLIST & REXX 9
No new posts To capture the job from savers CLIST & REXX 4
No new posts outtrap does not capture within an ed... CLIST & REXX 1
No new posts Best way to Capture Auth ID of the so... COBOL Programming 1
No new posts Capture GDG Dataset Name JCL & VSAM 10
Search our Forums:

Back to Top