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

If by mistake we MOVE a working storage variable into LINKAGE area. What will happen??

4 Answers   Accenture,


How to resolve the soc4 & soc7 other than following answers. Soc4 can resolved using mispleed dd name and dd name is not matching with file and soc7 check the sysdump and copy the offest address then correct it in the program.

10 Answers   ADP, Amdocs, Cap Gemini, Keane India Ltd, Super Value, TCS,


What is the difference between SEARCH and SEARCH ALL?

6 Answers   Cognizant,


If i have a variable A pic 9(2) value 10 Compute A = a - 100 what will be the value of A and will there be any error becoz of the Negative value

3 Answers   CTS,


How to convert bunch of words in a line to relvant ASCII values?

2 Answers  






What is Redefines clause?

8 Answers  


Using string statement.Is coding three destination string from one source string possible in one code?or three codes for every destination string of one source string.?thank you

1 Answers   BPL,


If we use GO BACK instead of STOP RUN in cobol?

2 Answers   Temenos,


how can we fetch 3 records in cobol pgm any coding pls ?

3 Answers   CGI,


I have a field with data type X(10). I want to perform arithmetic operation on this field? I tried doing it by moving the value into a numeric field. but it didn't work out. I am getting a S0C7 abend. Pls let me know if there is any way of getting this done?

1 Answers  


What happens in the background of spool when we submit a job for compilation and execution... This is a recent question in ibm...Kindly help me.....

3 Answers   IBM,


When search all is used in cobol program without sorted input data?

6 Answers   CGI, Principal Finance,


Categories