Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to capture the RC of JOb Submitted through INTRDR

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: How to capture the RC of JOb Submitted through INTRDR
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10274
Location: italy

PostPosted: Mon Mar 17, 2008 12:13 am    Post subject: Reply to: How to capture the RC of JOb Submitted through INT
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

Site Director


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

PostPosted: Mon Mar 17, 2008 5:13 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts JCL to get submitted once dataset has... vinu78 JCL & VSAM 17 Thu Feb 16, 2017 7:32 am
No new posts How to Capture the Max return code of... anilkumar922 All Other Mainframe Topics 2 Thu Jan 12, 2017 12:02 pm
This topic is locked: you cannot edit posts or make replies. Get a job submitted itself every time... arunsoods JCL & VSAM 3 Tue Nov 22, 2016 4:05 pm
No new posts Change Data Capture Ron Klop DFSORT/ICETOOL 14 Fri Apr 15, 2016 2:56 pm
No new posts RFE for SuperC submitted prino TSO/ISPF 0 Wed Apr 29, 2015 3:11 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us