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


Please Help Members By Posting Answers For Below Questions

Explain the purpose of the dd keylen parameter?

908


Differentiate between the joblib and the steplib statements?

1106


How does jcl act on a cobol code?

894


How do you overcome this limitation ?

947


Explain the function of dd disp parameter?

832


The disp in the JCL is MOD and the program opens the file in OUTPUT mode. What happens ? The disp in the JCL is SHR and the pgm opens the file in EXTEND mode. What happens ?

1259


if the submitter of a job wants to inform another user about the job completion, how can it be done?

1026


what are the types of abends that occur on job failure? And explain the possible causes of these

1358


What are the difference between jcl and jes?

1336


which utility is used to run a cobol-db2 program?

1064


What is the function of the dd dcb keyword?

1075


Explain how can a jobs execution priority be modified?

980


I have 60 steps in the JCL and want to Execute Only First from PROC by overriding in JCL ?

1598


How to run cobol program using jcl?

935


how to run batch program without jcl?

10797