What are differences between Static Call and Dynamic Call?
Answer Posted / sivakumar sekhrannair
If a program is called statically then its load module is
combined with mainprograms load module.
In dynamically called program the load module is
independent of the main program's load module.
Why it's happening?
The answer is
In statically called program the program name is given
inside the procedure division as a value not a variable.
The value given inside the procedure division will be
resolved and changed to load module language during
compilation.
But for dynamically called program, the program name is
given as a variable. The value passed to the variable
through file or through working storage section is resloved
only during runtime.
So when we compile the dynamically called subprogram
1)First we compile the subprogram that creates its own load
module.
2)then we compile the main program. During main program
compilation it subrogram name will be taken as a value of a
variable. so the subprogram load module will not be
combined with the main program
3) when we run the main program(which calls the dynmically
called subprogram) the main program treates the subprogram
name as a value and the subprogram is called now.
if anyone have any corrections please let me know in
shivanskn@yahoo.co.in
| Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
what happens if parmparameter passes zero bytes to the program
What is inspect in cobol ?
What is the utilization of copybook in cobol? Could we utilize a similar copybook?
Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
What are the different rules of SORT operation?
What is the LINKAGE SECTION used in COBOL?
Explain about different table spaces.
Explain the configuration section of a cobol program with examples of syntax.
How many sections are there in data division in COBOL?
What are the different open modes available in cobol?
How to know whether the module is dynamical or statistical?
State the various causes of s0c1, s0c5 and s0c7.
i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc
How to traceback if I am getting SOC7 or SOC4 abend? List down the steps