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: 6966
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 Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts Need Suggestion on COBOL program vickey_dw COBOL Programming 5 Thu Jan 05, 2017 10:55 pm
No new posts REXX DB2: Dynamic allocation of DB2.D... BHAS CLIST & REXX 3 Mon Dec 19, 2016 8:26 pm
No new posts I can not compile my program PL1 V3.R... Miguel Fernandez PL/I & Assembler 13 Tue Dec 06, 2016 8:30 pm
No new posts IMS BMP program causes 878 system abend Artemk IMS DB/DC 7 Tue Nov 22, 2016 8:26 pm


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