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
 

 

About static calls and dynamic calls

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: About static calls and dynamic calls
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: 1187
Location: Bangalore,India

PostPosted: Wed Jan 03, 2007 12:45 pm    Post subject:
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    Post subject:
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: 3158
Location: Tucson AZ

PostPosted: Wed Jan 03, 2007 2:22 pm    Post subject:
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    Post subject: Re: about CALLS
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    Post subject:
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    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
No new posts Dynamic array request/response contai... Suja.Sai CICS 2 Tue Jan 24, 2017 11:37 am
No new posts REXX DB2: Dynamic allocation of DB2.D... BHAS CLIST & REXX 3 Mon Dec 19, 2016 8:26 pm
No new posts Creating a dynamic sort card in JCL u... ChitraChhabra DFSORT/ICETOOL 4 Wed Aug 03, 2016 6:15 pm
No new posts Need help on SQL Dynamic WHERE Clause subratarec DB2 12 Sat Jul 16, 2016 3:11 pm
No new posts Need to create file with Dynamic Name... kapil27 JCL & VSAM 4 Wed May 25, 2016 9:45 am


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