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

About static calls and dynamic calls


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

New User


Joined: 13 Aug 2006
Posts: 20
Location: mumbai

PostPosted: Wed Jan 03, 2007 12:41 pm
Reply with quote

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
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1208
Location: Bangalore,India

PostPosted: Wed Jan 03, 2007 12:45 pm
Reply with quote

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
View user's profile Send private message
jamshirqureshi

New User


Joined: 13 Aug 2006
Posts: 20
Location: mumbai

PostPosted: Wed Jan 03, 2007 1:11 pm
Reply with quote

hey


Thanks for quick reply

jamz
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Wed Jan 03, 2007 2:22 pm
Reply with quote

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
View user's profile Send private message
sirigirisuresh
Warnings : 2

New User


Joined: 29 Apr 2006
Posts: 3

PostPosted: Wed Jan 03, 2007 3:20 pm
Reply with quote

Hei Gupts,
thanks for clearing the answer
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Thu Feb 22, 2007 9:27 am
Reply with quote

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
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 COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Using Dynamic file handler in the Fil... COBOL Programming 2
No new posts JCL Dynamic System Symbols JCL & VSAM 3
No new posts Synctool-dynamic split job for varyin... JCL & VSAM 7
No new posts Dynamic file allocation using JCL JCL & VSAM 8
Search our Forums:

Back to Top