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: 6968
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 Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm
No new posts REXX - Dynamic file Creation d_sarlie CLIST & REXX 7 Tue Jun 27, 2017 7:30 pm
No new posts pre-compiler for program in an HFS Pedro DB2 0 Fri Jun 23, 2017 11:13 pm
No new posts Dynamic output file creation in cobol... smileheal COBOL Programming 7 Thu Jun 15, 2017 10:53 pm
No new posts Compiling program in endeavor for tra... RALAKKAL Compuware & Other Tools 4 Mon Jun 05, 2017 8:27 pm


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