Sub module COBOL CALL, JCL changes.

Virtual Storage Access method - ESDS, KSDS, RRDS & LDS. Basic direct access method, Basic sequential -, Queued sequential -, Basic partitioned -, Indexed sequential -, Object - access method.
Post Reply
Suresh TCS
Registered Member
Posts: 11
Joined: Fri Mar 21, 2014 11:19 am

Sub module COBOL CALL, JCL changes.

Post by Suresh TCS »

If I call another program in COBOL, are there any additional steps I need to include in JCL. The steps are different when calling statically & dynamically?
William Collins
Global Moderator
Global Moderator
Posts: 490
Joined: Sun Aug 25, 2013 7:24 pm

Re: Sub module COBOL CALL, JCL changes.

Post by William Collins »

As long as you have your dynamically CALLed programs in a JOBLIB/STEPLIB available to your step, no further changes should be required. Do you have a specific problem?
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1895
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: Sub module COBOL CALL, JCL changes.

Post by Robert Sample »

A static call requires the subprogram be linked into the load module, so absolutely no changes are required to the executing JCL (the compile / link JCL has to include the subprogram in the link step, of course). A dynamic call requires the subprogram be available in a load library when the CALL is executed (this can be via a system library such as a LINKLIB, or JOBLIB / STEPLIB in the JCL -- the latter two may require a JCL change).
zprogrammer
Global Moderator
Global Moderator
Posts: 588
Joined: Wed Nov 20, 2013 11:53 am
Location: Mars

Re: Sub module COBOL CALL, JCL changes.

Post by zprogrammer »

Also ensure to use Input dataset in Job which will be needed for subprogram
zprogrammer
Suresh TCS
Registered Member
Posts: 11
Joined: Fri Mar 21, 2014 11:19 am

Re: Sub module COBOL CALL, JCL changes.

Post by Suresh TCS »

Thanks for the responses.

I was using dyanmic call so there was no change in the JCL but as the main program was modifed first time to include the call I asked it.
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “SMS & VSAM and BDAM, BSAM, QSAM, BPAM, ISAM, OAM.”