View previous topic :: View next topic
|
Author |
Message |
srinagendra
New User
Joined: 26 Feb 2007 Posts: 2 Location: hyderabad
|
|
|
|
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 |
|
|
cobolunni
Active User
Joined: 07 Aug 2006 Posts: 127 Location: kerala,india
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
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 |
|
|
cobolunni
Active User
Joined: 07 Aug 2006 Posts: 127 Location: kerala,india
|
|
|
|
yes if your question is not about submitting one job using another then as dick suggested proc is another answer |
|
Back to top |
|
|
Digvijay Singh
Active User
Joined: 20 Apr 2022 Posts: 148 Location: India
|
|
|
|
Thanks, guys, for reply.
I am working on it and will let you know how i have achieved this. |
|
Back to top |
|
|
Joerg.Findeisen
Senior Member
Joined: 15 Aug 2015 Posts: 1329 Location: Bamberg, Germany
|
|
|
|
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 |
|
|
Willy Jensen
Active Member
Joined: 01 Sep 2015 Posts: 730 Location: Denmark
|
|
|
|
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 |
|
|
|