Page 1 of 1

Specify the name of the Sub-program in JCL

PostPosted: Tue Jun 10, 2008 6:34 pm
by chasermf
Hi,
How can I specify the name of the Sub-program in JCL so that I can call the sub-routine when the calling program is running.

Regards,
chasermf

Re: sub pgm in jcl

PostPosted: Tue Jun 10, 2008 8:17 pm
by Bill Dennis
They are not directly named in the JCL. Sub programs only need to be accessable in the STEPLIB/JOBLIB or system LINKLIST/LPALIST concatenations for dynamic calls. For static linkage, use an INCLUDE statement in the LKED of the main module.