Specify the name of the Sub-program in JCL

JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...
chasermf
Posts: 6
Joined: Wed May 07, 2008 7:35 pm
Skillset: cobol,jcl
Referer: internet

Specify the name of the Sub-program in JCL

Postby chasermf » Tue Jun 10, 2008 6:34 pm

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

Bill Dennis
Posts: 278
Joined: Thu May 15, 2008 9:45 pm
Skillset: MVS
MQ
ISPF
Referer: sister site

Re: sub pgm in jcl

Postby Bill Dennis » Tue Jun 10, 2008 8:17 pm

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.
Regards,

Bill Dennis

Disclaimer: My comments on this forum are my own and do not represent the opinions or suggestions of any other person or business entity.


  • Similar Topics
    Replies
    Views
    Last post