Please let me know at which Scenarios we will go for STATIC
call or DYNAMIC
Answers were Sorted based on User's Feedback
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 |
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 |
Answer / mahesh
Dynamic calls are used when subprogram is called frequently.
Is This Answer Correct ? | 1 Yes | 3 No |
Explain how you can characterize tables in cobol?
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
Have you used comp and comp-3 in your project? And how?
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.
How do u know what version of cobol u are using?
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?
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
can i use multiple when statements in search & search all ? justify ur answer?
Explain about different table spaces.
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.
Explain about level numbers?
What is Static,Dynamic linking ?