Please let me know at which Scenarios we will go for STATIC
call or DYNAMIC

Answers were Sorted based on User's Feedback



Please let me know at which Scenarios we will go for STATIC call or DYNAMIC..

Answer / gopikrishna

Dynamic calls are used when subprogram is called frequently.
===>
As far as i know, when submprogram is small it is better to
make static calls

Is This Answer Correct ?    3 Yes 1 No

Please let me know at which Scenarios we will go for STATIC call or DYNAMIC..

Answer / gopikrishna

If it is static call. More memory will be utilized as the
called program is also included in the compilation.
Compilation mightslightly take more time when comapred with
dynamic calls.Dynamic calls are always done at run time
and execution time for Dynamic calls might be more than
static calls.

Usage of static and dynamic calls depends on your
requirement, based on specific condition- Say when Var1=0 u
need to call PGM1 and whn Var1=1 u need to call PGM2 then u
have to go for dynamic call.

Is This Answer Correct ?    1 Yes 0 No

Please let me know at which Scenarios we will go for STATIC call or DYNAMIC..

Answer / mahesh

Dynamic calls are used when subprogram is called frequently.

Is This Answer Correct ?    1 Yes 3 No

Post New Answer

More COBOL Interview Questions

Explain how you can characterize tables in cobol?

0 Answers  


study the following 01 A PIC 99V0 VALUE 5 01 B PIC 9V9 VALUE 6 01 C PIC 99V9 VALUE 2.5 01 D PIC 99 VALUE 3 COMPUTE A ROUNDED B C = A+B*C/D ON SIZE ERROR PERFORM PRINT-ERROR the comments of A.B.C after execution of the above statement are a.A=10 B=0 C=10 b.A=10 B=9.9 C=9.9 c.A=10 B=0 C=9.9 d.A=10 B=6 C=10

4 Answers   TCS,


Have you used comp and comp-3 in your project? And how?

0 Answers   IBM,


I have dataset DS1 which has records say 1 2 3 4 5 ... ... etc And also I have second dataset DS2 whcih has records 1 3 4 5 6 8 .. ... Both the files are sorted and now I want to compare these files and write it into the third files if the records are matching.

4 Answers   FIS, Wipro,


How do u know what version of cobol u are using?

3 Answers  






I have the file which is having the extension no as records. sample file will look like below. 2310 3410 3256 4350 3781 5408 I need to replace the record which is starting with 3 to 5 (i.e) 3410 to 5410. How can we do it through cobol and cobol-db2 program? I need the possible logic?

5 Answers   RBS,


consider the following two statements MOVE 10 TO N PERFORM PARA-X N TIMES STOP RUN PARA-X MOVE 5 TO N how many times PARA-X willbe exicuted? a.10 b.5 c.infinate d.execution error

6 Answers   ABCL, TCS,


can i use multiple when statements in search & search all ? justify ur answer?

2 Answers  


Explain about different table spaces.

0 Answers  


In a file if a column account number conatain value 0001234.. how can we move the value to another variable without zero. value may contain any type such as 00123405. we need the value 1234 or 12305. how can we do that in cobol. Please help.

1 Answers   CSC,


Explain about level numbers?

3 Answers  


What is Static,Dynamic linking ?

2 Answers  


Categories