View previous topic :: View next topic
|
Author |
Message |
ganeshptrk
New User
Joined: 04 Apr 2007 Posts: 17 Location: Chennai
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
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 |
|
|
dp33770
New User
Joined: 04 Jul 2007 Posts: 91 Location: Hyderabad
|
|
|
|
If without giving compiler option DYNAM the subprogram will act as dynamic call then whts the use of that compiler option ? |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
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 |
|
|
|