What is the difference between static call & Dynamic call ?
Answer Posted / muttiah
PFB the difference between static and dynamic call.
Static Call: We can find whether a call is static or
dynamic in 2 ways. If the call statement is like this
call 'Progrname' ----> Static call
Call ws-variable ----> Dynamic call
By looking at the compiler options.
If Dynam -- Dynamic call, Nodynam ---> Static call..
No Dynam is default.
In Static call the load module of the sub program resides
in the same memory where the Main program resides.
Whereas in case of Dynamic call. The load module will be
called into memory only during run time. As a consequence.
The Static call is much faster..Dynamic call is slower.
Memory will be saved in case of dynamic call..
Static call is used for small sub programs.
Dynamic call is used for large sub programs.
Choosing the type of call either static or dynamic depends
on your requirement.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
what operation is performed by job statement?
In sms datasets, what is the function of the dd avgrec keyword?
what is the purpose of coding class parameter in job statement?
How can unused space allocation be returned to the system when a dataset is closed?
What are steplib and joblib? What for they are used?
What is the purpose of dd?
What is the purpose of dd * statement in jcl?
How to alter the parameters for the existing gdg?
What is the use of disp parameter?
State the uses of syspring, sysin, sort fields, sum fields and dummy.
how do you access an uncataloged dataset in a jcl?
When output dataset space is required, what quantity categories are used?
When you specify multiple datasets in a JOBLIB or STEPLIB, what factor determines the order?
What is the significance of addrspc parameter in the exec statement?
What methodology can be adapted to transfer data to a program that is coded using the exec statement?