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

In COBOL "BEFORE" advancing is there or not ?

3 Answers  


What is the difference between working storage copybook and linkage section copybook?

5 Answers   TCS,


why we are using picture clause in the cobol programs?

2 Answers  


We know that size of redefine and redefining need not to be same..Then does the below case true 01 ws-date pic 9(6). 01 ws-redf-date REDEFINES ws-date 05 ws-year pic 9(4) 05 ws-mon pic 9(2) 05 ws-day pic 9(2)

1 Answers   Cap Gemini,


How can we pass data from cobol to JCl?

7 Answers   ADP, Amdocs, IBM,






Difference between next and continue clause

4 Answers   Kanbay,


Will the variable POS in the following code have a value of 2 or not? 01 POS PIC S9(4) COMP VALUE 2. 01 FIRST-NAME PIC X(10) VALUE 'ABC'. 01 LAST-NAME PIC X(10) VALUE 'XYZ'. 01 NAME PIC X(20) VALUE SPACES. STRING FIRST-NAME DELIMITED BY SPACES ' ' DELIMITED BY SIZE LAST-NAME DELIMITED BY SPACES INTO NAME WITH POINTER POS

2 Answers  


COMP?

2 Answers  


What is redefines clause in COBOL?

0 Answers   B-Ways TecnoSoft,


How to use the same COBOL program in Batch and CICS on lines? explain with an example

0 Answers   IBM,


If there are two files one with 100 records and other with 101 records. we have to find out the one record that is the odd man out . What are the steps to do it

7 Answers   BirlaSoft,


how to code in cobol while using variable block file?

1 Answers  


Categories