Page 1 of 1

JCL for calling program

PostPosted: Fri Dec 09, 2011 11:38 am
by jvinoth
Can anyone please tell me how to write JCL for calling subprogram..and give me the sample code too

Re: JCL for calling program

PostPosted: Fri Dec 09, 2011 1:05 pm
by expat
Explain exactly what you mean by calling a sub program. A program called from another program.

Please do not ask for code without first showing exactly what you have already tried yourself, besides, it is impossible for us to give you any JCL coding without all of the program(s) source code.

Re: JCL for calling program

PostPosted: Fri Dec 09, 2011 1:06 pm
by dick scherrer
The jcl for a program that calls a subprogram should be the same as the jcl for executing a program that does no subprogram call (unless your system stores called programs in a different library.

If you are able to execute a stand-alone program in batch (via jcl) you already have what you need.

If you are not able to execute a stand-alone program, you need to post why not. Once we know where you might be stuck, someone can offer a suggestion.

Re: JCL for calling program

PostPosted: Fri Dec 09, 2011 3:46 pm
by jvinoth
i got the information...need to include the load library of that subprogram in JCL joblib or steplib ...thanks for all