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

Decision on static and Dynamic calls


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

New User


Joined: 06 Apr 2005
Posts: 27

PostPosted: Wed Apr 06, 2005 2:29 pm
Reply with quote

How does a programmer decides whether a static or a dynamic call should be used in any programs?
Back to top
View user's profile Send private message
Great Indian

New User


Joined: 05 Apr 2005
Posts: 9

PostPosted: Wed Apr 06, 2005 3:08 pm
Reply with quote

You have to take a decesion based on size of called program(sub pgm)....

If called program size is small then go for static call because, In static call called program is link edited into calling program.

If called program size is big then go for dynamic call because, in dynamic call called program and calling program exists as a seperate load modules.
Back to top
View user's profile Send private message
kanak

Moderator


Joined: 12 Mar 2005
Posts: 252
Location: India

PostPosted: Wed Apr 06, 2005 3:08 pm
Reply with quote

i think it all depends upon the requirement..where performace in terms of speed or CPU time is more important it is better to go for static call, where as where performance is based upon the amount of memory used it is better to go for dynamic.
Back to top
View user's profile Send private message
sandra

New User


Joined: 06 Apr 2005
Posts: 27

PostPosted: Wed Apr 06, 2005 3:28 pm
Reply with quote

Thanks a lot guys
Back to top
View user's profile Send private message
jeevanshivain

New User


Joined: 07 Apr 2005
Posts: 4

PostPosted: Thu Apr 07, 2005 11:18 am
Reply with quote

hey,
In static call called pgm is linkedited to mainmodule.but in case of dynamic it is not linkedited to the mainprogram.

suppose i have a mainprogram called A.it calling B.Bcalling c.if i get an error in the program B,

IN dynamic call it is enough to compile Program B.suppose if v go for static call it take high resourse utilization.

i hope now u understand

jeevan
Back to top
View user's profile Send private message
sandra

New User


Joined: 06 Apr 2005
Posts: 27

PostPosted: Thu Apr 07, 2005 2:48 pm
Reply with quote

That was very informative jeevanshivain.Thanks for the same
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