which is better either static call or dynamic call?
and why?

Answers were Sorted based on User's Feedback



which is better either static call or dynamic call? and why?..

Answer / suresh ramaiyan

Static call:
============
Main program load module will have sub program load module in itself. So when there is a call made to a sub program, it won't go outside of the current load.

Dynamic call:
=============
Main & Sub program will have two different modules. When there is call to a sub program, system will go and search for the load module in the joblib.

Both have advantages.
1. If the sub program is going to be changed oftentimes, then Dynamic call is better.
2. Think that, for one call, system should to the load library and search for sub program module. when it is found, load that into main memory & pass the control to that and run. when that is finished, remove it from main memory. If the sub program is getting called 1 lack times then?........... In this case, Better to use static.

I believe, you understand. Please correct me if I'm wrong.

Is This Answer Correct ?    2 Yes 0 No

which is better either static call or dynamic call? and why?..

Answer / joshin

dynamic call is far better than static because the final
result is storeded in two records ie main program and sub
program. so when ever we need we can call the sub program
for other main program also.

Is This Answer Correct ?    2 Yes 1 No

which is better either static call or dynamic call? and why?..

Answer / mahi

dynamic call is much better than static

static call;
main program object code and sub program object code loaded
in one loadlibrary
if any change in code both has to be compiled

dynamic call;
main program object code and sub program object code loaded
in different loadlibraries
if any change in code both need not to be compiled

Is This Answer Correct ?    2 Yes 1 No

which is better either static call or dynamic call? and why?..

Answer / siri

STATIC CALL:-THE SUB PROGRAM CODE WILL BE SMALL AT THE TIME WE PREFERED STATIC CALL...STATIC CALL IS FAST COMPARING TO THE DYNAMIC CALL...OBJECT CODES ARE LINKED BEFORE THE EXECUTION....
DYNAMIC CALL:- SUB PROGRAM IS CALLED FREQUENTLY WE USED TO DYNAMIC CALL...OBJECT CODES ARE LINKED DURING THE EXECUTION...
SO THE PROCESS WILL BE SLOW COMPARING THE STATIC CALL..ITS NO NEED TO RECOMPILE WHEN THE SUBPROGRAM NEED TO BE MODIFIED...THIS IS BIGGEST ADVANTAGE OF THE DYNAMIC CALL....SO
FIRST WE PREFERED TO THE DYNAMIC CALL.....S

Is This Answer Correct ?    0 Yes 0 No

which is better either static call or dynamic call? and why?..

Answer / joshin

dynamic call is far better than static because the final
result is storeded in two records ie main program and sub
program. so when ever we need we can call the sub program
for other main program also.

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More COBOL Interview Questions

what are the error codes in cobol, db2, cics, vsam , and jcl

2 Answers   TetraSoft,


consider the following piece of code 01 GROUP-ITEM 05 AMOUNT-1 PIC 99V9 USAGE COMP VALUE 50 05 AMOUNT-2 PIC 9(4)V99 USAGE COMP MOVE ZERO TO GROUP-ITEM ADD 50 TO AMOUNT-1 what will be the content of AMOUNT-1? a.50 b.100 c.0 d.unpredictable

10 Answers   TCS,


what is the difference between Plan & package?

1 Answers   IBM,


What is the significance of the PROGRAM-ID paragraph? If this name doesnt match with the name of the COBOL program, does it make a difference? Is the name specified in the PROGRAM-ID paragraph used as a name for the load module or any such thing?

4 Answers   IBM,


how to submit a jcl by cobol program. clear me with an example.

3 Answers   HCL,






What are the different rules for performing sort operation?

0 Answers  


What kind of error is trapped by on size error option?

0 Answers  


When is a scope terminator mandatory?

3 Answers  


can we write paragraph in area B .....

4 Answers   L&T,


What will happen if we generate GDG (+2) version without generating (+1) version?

2 Answers   IBM, T systems,


What is Comm?

2 Answers   IBM, Kemper Corporation,


Why would you use find and get rather than to obtain?

0 Answers  


Categories