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
 

 

Decision on static and Dynamic calls

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Decision on static and Dynamic calls
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    Post subject:
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    Post subject:
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    Post subject: Re: Decision on static and Dynamic calls
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    Post subject: Re: Decision on static and Dynamic calls
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    Post subject: Re: Decision on static and Dynamic calls
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    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 split of files under groups sril.krishy DFSORT/ICETOOL 4 Mon Apr 17, 2017 1:09 pm
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


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