Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

dynamic linking - different options used in program and JCL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
ganeshptrk

New User


Joined: 04 Apr 2007
Posts: 17
Location: Chennai

PostPosted: Thu Mar 13, 2008 9:07 pm    Post subject: dynamic linking - different options used in program and JCL
Reply with quote

Hi,
In my COBOL program, I am dynamically linking my subprogram, but on COMPILE and LINK-EDIT jcl, I have specified NODYNM paramter. What happens now?

Similarly, in my COBOL program, I am statically linking my subprogram, but on LINK-EDIT job step, I have specified DYNM parameter. what happens now? will the subprogram linking according to code or jcl parameters?

Thanks
Ganesh
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Thu Mar 13, 2008 10:09 pm    Post subject:
Reply with quote

Hello,

What results did you get?

If you look at the output of the compile and the link-edit, you will be able to see what the system did with your program. For validation, i'd suggest separate program names for all 4 (2 callers and 2 called).
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Fri Mar 14, 2008 5:37 am    Post subject:
Reply with quote

Hi Ganesh,

This might help:

*************************************************************
Static vs Dynamic CALLs
*************************************************************
If compiled as NODYNAM:
CALL 'literal' is a static call
CALL WS-label is a dynamic call

If compiled as DYNAM:
CALL 'literal' is a dynamic call
CALL WS-label is a dynamic call

Keep in mind that these comments (and the DYNAM option itself) pertain to compiling the CALLing pgm only. (added 09/15/08)
Back to top
View user's profile Send private message
dp33770

New User


Joined: 04 Jul 2007
Posts: 92
Location: Hyderabad

PostPosted: Fri Sep 12, 2008 12:39 pm    Post subject:
Reply with quote

If without giving compiler option DYNAM the subprogram will act as dynamic call then whts the use of that compiler option ?
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6967
Location: porcelain throne

PostPosted: Fri Sep 12, 2008 1:58 pm    Post subject:
Reply with quote

I think you will find that the LinkageEditer (binder) parm NCAL has a lot to do with static and dynamic linking.

you can also browse your load modules (if you don't want to run AMBLIST) and you can see if the load module was statically or dynamically linked.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm
No new posts Dynamic split of files under groups sril.krishy DFSORT/ICETOOL 4 Mon Apr 17, 2017 1:09 pm
No new posts SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 pm
No new posts Dynamic array request/response contai... Suja.Sai CICS 2 Tue Jan 24, 2017 11:37 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us