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

static call & dynamic call


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

New User


Joined: 13 Oct 2004
Posts: 2
Location: hyderabad

PostPosted: Wed Oct 13, 2004 12:29 pm
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
sandip_datta

Active User


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

PostPosted: Wed Oct 13, 2004 1:18 pm
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
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

Active User


Joined: 06 Jan 2004
Posts: 247
Location: Hyderabad

PostPosted: Thu Oct 14, 2004 4:21 pm
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: 1592

PostPosted: Sat Oct 16, 2004 4:16 am
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
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 Using Dynamic file handler in the Fil... COBOL Programming 2
No new posts Error while running web tool kit REXX... CLIST & REXX 5
No new posts JCL Dynamic System Symbols JCL & VSAM 3
No new posts Call program, directly from panel CLIST & REXX 9
No new posts Synctool-dynamic split job for varyin... JCL & VSAM 7
Search our Forums:

Back to Top