View previous topic :: View next topic
|
Author |
Message |
truly198
New User
Joined: 15 May 2010 Posts: 4 Location: CN
|
|
|
|
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 |
|
|
Phrzby Phil
Senior Member
Joined: 31 Oct 2006 Posts: 1042 Location: Richmond, Virginia
|
|
|
|
Hmmmmmmmmmmmmmm.
I wonder if this has been discussed anywhere on the world wide web. |
|
Back to top |
|
|
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
I think there may be a very slim chance that it is discussed in the cobol manuals. |
|
Back to top |
|
|
Phrzby Phil
Senior Member
Joined: 31 Oct 2006 Posts: 1042 Location: Richmond, Virginia
|
|
|
|
Oh right - the manuals! How did I forget them? Tsk tsk tsk. |
|
Back to top |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
Back to top |
|
|
truly198
New User
Joined: 15 May 2010 Posts: 4 Location: CN
|
|
|
|
Hi Bill ,
are you sure you supplied the correct link ? i dont think it is what i want really
and in mannuals ,there is no such ques i think ..
can somebody directly answers this ques ? |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
Back to top |
|
|
Stefan
Active User
Joined: 12 Jan 2006 Posts: 110 Location: Germany
|
|
|
|
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 |
|
|
truly198
New User
Joined: 15 May 2010 Posts: 4 Location: CN
|
|
|
|
thanks stefan really
i shared the site with my collegues if u dnt mind |
|
Back to top |
|
|
|