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
 

 

What is static and dynamic linkage

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

New User


Joined: 10 Oct 2005
Posts: 5

PostPosted: Fri Jan 13, 2006 10:20 am    Post subject: What is static and dynamic linkage
Reply with quote

What is static and dynamic linkage
Back to top
View user's profile Send private message

gowtham_1982
Warnings : 1

Active User


Joined: 02 Dec 2005
Posts: 109

PostPosted: Fri Jan 13, 2006 10:31 am    Post subject: Re: About linkage
Reply with quote

bhuvana_veera wrote:
What is static and dynamic linkage



hai bhuvana_veera


i think you are posting with respect to Static and Dynamic call of a sub routine. Please search in the forum or eloborate your query.



corrections welcomed...


gowtham
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Sun Jan 15, 2006 11:13 am    Post subject:
Reply with quote

Here is a quote from "Source Code World":
Quote:
In static linking, the called subroutine is link-edited into the calling program , while in dynamic linking, the subroutine & the main program will exist as separate load modules. You choose static/dynamic linking by choosing either the DYNAM or NODYNAM link edit option. (Even if you choose NODYNAM, a CALL identifier (as opposed to a CALL literal), will translate to a DYNAMIC call).

A statically called subroutine will not be in its initial state the next time it is called unless you explicitly use INITIAL or you do a CANCEL. A dynamically called routine will always be in its initial state.



O.
Back to top
View user's profile Send private message
bhuvana_veera

New User


Joined: 10 Oct 2005
Posts: 5

PostPosted: Thu Jan 19, 2006 3:31 pm    Post subject: Re: What is static and dynamic linkage
Reply with quote

hi
thank u for ur info
but i want to know how to change DYNAM to NODYNAM and vice-versa
Back to top
View user's profile Send private message
manjinder

New User


Joined: 04 Dec 2005
Posts: 45
Location: pune

PostPosted: Thu Jan 19, 2006 3:44 pm    Post subject: Re: What is static and dynamic linkage
Reply with quote

in static call if you made change to sub program you have to compile both programs but it is not the case with dynamic call in dynamic call if u change sub program no need to compile main program also.
for static call there are one loadmodule for both sub and main prog but for dynam there are separate loadmodules for sub and main program.
and you can change dynam to nodynam at compile time.

regard..
manjinder

correct me if i am wrong.
Back to top
View user's profile Send private message
khamarutheen

Active Member


Joined: 23 Aug 2005
Posts: 680
Location: NJ

PostPosted: Thu Jan 19, 2006 3:50 pm    Post subject: DYNAM /NODYNAM
Reply with quote

In DYNAM calls to cobol program by default it is NODYNAM only

u can use DYNAM to cause nonnested, separately compiled programs invoked through the CALL literal statement to be loaded (for CALL) and deleted (for CANCEL) dynamically at run time.

CALL identifier statements always result in a run-time load of the target program and are not impacted by this option.

The DYNAM compiler option must not be used by programs that are translated by the CICS translator.

If your COBOL program calls programs that have been linked as dynamic link
libraries (DLLs), then you must not use the DYNAM option. You must instead
compile the program with the NODYNAM and DLL options.

Declared as: DYN|NODYN
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 REXX - Dynamic file Creation d_sarlie CLIST & REXX 7 Tue Jun 27, 2017 7:30 pm
No new posts Dynamic output file creation in cobol... smileheal COBOL Programming 7 Thu Jun 15, 2017 10:53 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 Dynamic array request/response contai... Suja.Sai CICS 2 Tue Jan 24, 2017 11:37 am
No new posts REXX DB2: Dynamic allocation of DB2.D... BHAS CLIST & REXX 3 Mon Dec 19, 2016 8:26 pm


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