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

Static versus Dynamic Linkage in COBOL


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
truly198

New User


Joined: 15 May 2010
Posts: 4
Location: CN

PostPosted: Mon May 16, 2011 9:46 pm
Reply with quote

Hi All, is below the code dynamic or static call

in working storage ,we make it as

WC-SUBPGM VALUE 'SUBPGM'

in procedure division ,we call like

CALL WC-SUBPGM

also ,pls tell more like difference btwn dynamic n static call

Regards
Back to top
View user's profile Send private message
Phrzby Phil

Senior Member


Joined: 31 Oct 2006
Posts: 1042
Location: Richmond, Virginia

PostPosted: Mon May 16, 2011 10:00 pm
Reply with quote

Hmmmmmmmmmmmmmm.

I wonder if this has been discussed anywhere on the world wide web.
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Mon May 16, 2011 10:03 pm
Reply with quote

I think there may be a very slim chance that it is discussed in the cobol manuals.
Back to top
View user's profile Send private message
Phrzby Phil

Senior Member


Joined: 31 Oct 2006
Posts: 1042
Location: Richmond, Virginia

PostPosted: Mon May 16, 2011 10:24 pm
Reply with quote

Oh right - the manuals! How did I forget them? Tsk tsk tsk.
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Mon May 16, 2011 11:16 pm
Reply with quote

Click on the following for a dose of "TMI" -

ibmmainframes.com/viewtopic.php?p=258799&highlight=#258799

Bill
Back to top
View user's profile Send private message
truly198

New User


Joined: 15 May 2010
Posts: 4
Location: CN

PostPosted: Tue May 17, 2011 10:09 am
Reply with quote

Hi Bill ,

are you sure you supplied the correct link ? i dont think it is what i want really icon_sad.gif

and in mannuals ,there is no such ques i think ..

can somebody directly answers this ques ?
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue May 17, 2011 12:07 pm
Reply with quote

did You read and meditate on ?
publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IGY3PG32/4.1.3?SHELF=IGY3SH33&DT=20061117131343

and the relative examples
publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IGY3PG32/4.1.3.6?SHELF=IGY3SH33&DT=20061117131343&CASE=

it really looks like not!
Back to top
View user's profile Send private message
Stefan

Active User


Joined: 12 Jan 2006
Posts: 110
Location: Germany

PostPosted: Tue May 17, 2011 12:31 pm
Reply with quote

truly198 wrote:
tell more like difference btwn dynamic n static call

You could read an article "Static versus Dynamic Linkage in COBOL" written by the famous Jim Moore, an exceptionally gifted technical author.
You'll find this on my web site sites.google.com/site/schlabb/home/hints-tips/cobol

Generally spoken "static" means that the called program has to be present at link time and will be included into the calling program's load module by the linkage editor. "Dynamic" means that the linkage editor leaves all references to the called program unresolved. At run time this program will be loaded as a separate module.
There are advantages and disadvantages for both methods. Read Jim's article to dig deeper into these concepts.
From my experience most shops nowadays prefer dynamic linking. Each module can be maintained and activated separately without any need to re-link all calling programs. Several years ago performance has been the most important issue mainly for batch programs to choose static linking method. But I think you'll find these cases ever fewer.

Hope this helps
Back to top
View user's profile Send private message
truly198

New User


Joined: 15 May 2010
Posts: 4
Location: CN

PostPosted: Wed May 18, 2011 10:16 am
Reply with quote

thanks stefan really

i shared the site with my collegues if u dnt mind icon_biggrin.gif
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 Replace each space in cobol string wi... COBOL Programming 3
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts Generate random number from range of ... COBOL Programming 3
Search our Forums:

Back to Top