Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
static call & dynamic call

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    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

sandip_datta

Active User


Joined: 02 Dec 2003
Posts: 151
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

Active User


Joined: 06 Jan 2004
Posts: 247
Location: Hyderabad

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: 1592

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
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 Code Coverage and static analysis too... Aditya.Srivastava PL/I & Assembler 2 Fri May 25, 2018 12:48 pm
No new posts using CALL PLIRETC(somevalu) Pedro PL/I & Assembler 1 Wed May 09, 2018 10:25 pm
No new posts Call COBOL or PLI with a click from w... vaibhav gs All Other Mainframe Topics 1 Mon Apr 16, 2018 7:29 pm
No new posts Print call stack in Mainframe C DIPANKAR SAHA ABENDS & Debugging 2 Thu Mar 15, 2018 2:58 pm
No new posts Enterprise PL/I - dynamic allocation ... prino PL/I & Assembler 1 Mon Jan 29, 2018 10:17 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us