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
 

 

Static versus Dynamic Linkage in COBOL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Static versus Dynamic Linkage in COBOL
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

Active Member


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

PostPosted: Mon May 16, 2011 10:00 pm    Post subject:
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    Post subject:
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

Active Member


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

PostPosted: Mon May 16, 2011 10:24 pm    Post subject:
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: 2502
Location: Atlanta, Georgia, USA

PostPosted: Mon May 16, 2011 11:16 pm    Post subject: Reply to: dynamic call or static call ???
Reply with quote

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

http://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    Post subject: Reply to: dynamic call or static call ???
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10256
Location: italy

PostPosted: Tue May 17, 2011 12:07 pm    Post subject: Reply to: dynamic call or static call ???
Reply with quote

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

and the relative examples
http://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    Post subject: Re: dynamic call or static call ???
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 http://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    Post subject: Reply to: dynamic call or static call ???
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    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
This topic is locked: you cannot edit posts or make replies. Cobol GUI (like Editor) Kala Mainframe COBOL Programming 14 Wed May 10, 2017 12:30 pm
No new posts IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts COBOL Code Parsers and Lineage Establ... balimanja COBOL Programming 2 Tue May 02, 2017 3:30 am
No new posts Cobol upgrade - source code missing f... gthmrj IBM Tools 1 Wed Apr 26, 2017 6:04 pm
No new posts Dynamic split of files under groups sril.krishy DFSORT/ICETOOL 4 Mon Apr 17, 2017 1:09 pm


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