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

How to call From one JCL to another JCL


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
srinagendra

New User


Joined: 26 Feb 2007
Posts: 2
Location: hyderabad

PostPosted: Tue Mar 06, 2007 5:12 pm
Reply with quote

I have faced a question from CSC , They asked me how call from one Jcl to another JCL.

Please clarify it.

thanks
Nag
Back to top
View user's profile Send private message
cobolunni

Active User


Joined: 07 Aug 2006
Posts: 127
Location: kerala,india

PostPosted: Tue Mar 06, 2007 11:53 pm
Reply with quote

using internal reader we can submit a job using another job

Code:
//STEP050 EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DSN=SYSPDA.JCLLIB(JCL2),DISP=SHR
//SYSUT2 DD SYSOUT=(A,INTRDR)
//SYSIN DD DUMMY


let jcl2 be the sub jcl then copy that job file to internal reader using IEBGENER that will make 2nd jcl executing one
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: Wed Mar 07, 2007 12:21 am
Reply with quote

Hello,

JCL doesn't "call" JCL - that may have been what they were looking for or possibly the question was re-worded in the post.

JCL can do as the suggestion send other JCL thru the internal reader.

Another way for one JCL to invoke another is with a PROCedure or nested PROCedures where one PROC executes another.

Please let us know if the replies do not answer your question.
Back to top
View user's profile Send private message
cobolunni

Active User


Joined: 07 Aug 2006
Posts: 127
Location: kerala,india

PostPosted: Wed Mar 07, 2007 12:40 am
Reply with quote

yes if your question is not about submitting one job using another then as dick suggested proc is another answer
Back to top
View user's profile Send private message
Digvijay Singh

Active User


Joined: 20 Apr 2022
Posts: 141
Location: India

PostPosted: Thu Dec 29, 2022 6:13 pm
Reply with quote

Thanks, guys, for reply.

I am working on it and will let you know how i have achieved this.
Back to top
View user's profile Send private message
Joerg.Findeisen

Senior Member


Joined: 15 Aug 2015
Posts: 1245
Location: Bamberg, Germany

PostPosted: Thu Dec 29, 2022 8:10 pm
Reply with quote

Digvijay Singh wrote:
Thanks, guys, for reply.

I am working on it and will let you know how i have achieved this.

You should check to what thread you are replying to before sending. Just a friendly reminder.
Back to top
View user's profile Send private message
Willy Jensen

Active Member


Joined: 01 Sep 2015
Posts: 712
Location: Denmark

PostPosted: Thu Dec 29, 2022 9:59 pm
Reply with quote

JCL cannot call JCL, is this a trick question?
Programs can call programs by a number of means - FTP, MQSeries, Sysplex messaging, Batch Pipes, shared dataset etc etc....
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 -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts Error while running web tool kit REXX... CLIST & REXX 5
No new posts Call program, directly from panel CLIST & REXX 9
No new posts Batch call online program, EXCI task ... CICS 3
No new posts CSQBGET - Call giving completion code... COBOL Programming 3
No new posts CICS DPL call CICS 6
Search our Forums:

Back to Top