I have a cobol program with a sub program. How ca i find that
it is a dynamic call? or static call..?
Answers were Sorted based on User's Feedback
Answer / adarsh
in addition to above answers, we can find by seeing compiler
option.if copt=dynam it is dynamic call,default is nodynam
i.e static call.
| Is This Answer Correct ? | 6 Yes | 2 No |
Answer / seema dawlekar
In a main program if we are calling subprogram directly ie
by giving 'call subprog' then it is static call.
ex:call subprog.
if we are moving the subprogram name to the working storage
variable and calling the working storage variable then it a
dynamic call ie.,
ex:
01 ws-var1 pic x(10).
move subpgrog to ws-var1.
call ws-var1.
| Is This Answer Correct ? | 7 Yes | 7 No |
What are the different forms of EVALUATE statement?
which one is better among static call and dynamic call?
consider the following FD FILE-1 01 REC-1 PIC X(80) ...... WORKING-STORAGE SECTION 01 W-REC PIC X(90) ........ PROCEDURE DIVISION FIRST-PARA ....... READ FILE-1 INTO W-REC AT END MOVE 1 TO EOF-FLAG which of the following is true with respect to the above? a.REC-1 will contain nothing and W-REC will contain the contains of the record read b.REC-1 and W-REC contain the same data c.syntex is invalid and error will occur d.REC-1 and W-REC must be of same size
How do we get current date from system with century?
Identify the invalid dataname from the following: (A) savings-account (B) annual-allocation-for-overhead (C) samount250 (D) 12demand
How do u initialize an array?
What is the default value of DISP parameter?
how do you reference the ksds vsam file formats from cobol programs
What is normalisation?
What is the utilization of copybook in cobol? Could we utilize a similar copybook?
Explain fixed length record in cobol? with suitable example
Hi, My interviewer ask A calls B and C calls B, a and b are static c and b are dynamic.what happens if they compile and execute at same time.