IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

dynamic linking - different options used in program and JCL


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
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
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

Moderator Emeritus


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

PostPosted: Thu Mar 13, 2008 10:09 pm
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
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: 91
Location: Hyderabad

PostPosted: Fri Sep 12, 2008 12:39 pm
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: 6966
Location: porcelain throne

PostPosted: Fri Sep 12, 2008 1:58 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Using API Gateway from CICS program CICS 0
No new posts Using Dynamic file handler in the Fil... COBOL Programming 2
No new posts DB2 Event passed to the Application P... DB2 1
No new posts How to pass the PARM value to my targ... COBOL Programming 8
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
Search our Forums:

Back to Top