View previous topic :: View next topic
|
Author |
Message |
jamshirqureshi
New User
Joined: 13 Aug 2006 Posts: 20 Location: mumbai
|
|
|
|
Hi Friends,
Can anybody tell me solution for :::
suppose i have 2 programs, pgm A and Pgm B , Pgm A is calling pgm B but i modified program B. now what will happened in static and dynamic call. do i need to compile these two program in static or dynamic
thanks in advance
Jamz |
|
Back to top |
|
|
guptae
Moderator
Joined: 14 Oct 2005 Posts: 1208 Location: Bangalore,India
|
|
|
|
Hi Jamz,
In static call load module are same foe both called & calling program so if u do some changes in called program u need to recompile main program
But in dynamic call the load module are different of called & main program so there is no need to recompile the main program if u have done any changes in called program |
|
Back to top |
|
|
jamshirqureshi
New User
Joined: 13 Aug 2006 Posts: 20 Location: mumbai
|
|
|
|
hey
Thanks for quick reply
jamz |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
guptae wrote: |
In static call load module are same foe both called & calling program so if u do some changes in called program u need to recompile main program |
Don't forget Ekta, the original load module can be relinked replacing the old subprogram with the new, recompiling is not always necessary (or sometimes possible), |
|
Back to top |
|
|
sirigirisuresh Warnings : 2 New User
Joined: 29 Apr 2006 Posts: 3
|
|
|
|
Hei Gupts,
thanks for clearing the answer |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
Here's the full rule:
Code: |
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 |
|
|
Back to top |
|
|
|