Sub module COBOL CALL, JCL changes.
-
- Registered Member
- Posts: 11
- Joined: Fri Mar 21, 2014 11:19 am
Sub module COBOL CALL, JCL changes.
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?
-
- Global Moderator
- Posts: 490
- Joined: Sun Aug 25, 2013 7:24 pm
Re: Sub module COBOL CALL, JCL changes.
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?
- Robert Sample
- Global Moderator
- Posts: 1895
- Joined: Fri Jun 28, 2013 1:22 am
- Location: Dubuque Iowa
Re: Sub module COBOL CALL, JCL changes.
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).
-
- Global Moderator
- Posts: 588
- Joined: Wed Nov 20, 2013 11:53 am
- Location: Mars
Re: Sub module COBOL CALL, JCL changes.
Also ensure to use Input dataset in Job which will be needed for subprogram
zprogrammer
-
- Registered Member
- Posts: 11
- Joined: Fri Mar 21, 2014 11:19 am
Re: Sub module COBOL CALL, JCL changes.
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.
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.
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