Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
static call & dynamic call

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe COBOL
Author Message
amar

New User


Joined: 13 Oct 2004
Posts: 2
Location: hyderabad

PostPosted: Wed Oct 13, 2004 12:29 pm    Post subject: static call & dynamic call
Reply with quote

hi,
i have a dought. when u r using sub programs, i made some changes in sub program. is it necessary to recompile again the main program in staticall and dynamic call.
regards
amarnatrh
Back to top
View user's profile Send private message
References
sandip_datta

EXPERT


Joined: 02 Dec 2003
Posts: 152
Location: Tokyo, Japan

PostPosted: Wed Oct 13, 2004 1:18 pm    Post subject:
Reply with quote

Hi Amar,

The answer is in ststic call "YES" and in dynamic call "NO".

Regards,
Sandip.
Back to top
View user's profile Send private message
amar

New User


Joined: 13 Oct 2004
Posts: 2
Location: hyderabad

PostPosted: Wed Oct 13, 2004 3:00 pm    Post subject:
Reply with quote

hi sandeep,
thanks for u r answer.
again i have the dought. in static call, both the will compiled together.
so there is no need to compile the main program. where as in dynamic call both will seperatly compiled. so there is necessary to recompile the main program.
plz clarify
regards
amar
Back to top
View user's profile Send private message
anuradha

Global Moderator


Joined: 06 Jan 2004
Posts: 257

PostPosted: Thu Oct 14, 2004 4:21 pm    Post subject:
Reply with quote

In static linking, the called subroutine is link-edited into the calling program , while in dynamic linking, the subroutine & the main program will exist as separate load modules
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1526

PostPosted: Sat Oct 16, 2004 4:16 am    Post subject:
Reply with quote

Just to emphasize Anu's point, you DON'T recompile, you reLINK the subpgm.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe COBOL All times are GMT + 6 Hours
Page 1 of 1