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

List the various advantages of using jcl language?

856


What are the difference between jcl and jes?

1050


How can a stopped job be started again?

717


How jcl is used for testing batch programs?

723


What are the parameter we cannot use in procedure? How many instream we can write in single jcl?

587






What methodology can be adapted to transfer data to a program that is coded using the exec statement?

616


Is automatic restart possible in jcl? If yes, how?

661


how to run batch program without jcl?

10093


what is use of dcb parameter in dd statement?

778


Explain the purpose of dd dummy statement?

676


what is use of dsn parameter in dd statement?

675


how can you check if a file is empty using jcl?

816


How can an in-stream dataset be terminated?

850


how you will the direct the data to spool using sysout option?

1769


IIN APITUDE THEY GAVE ONLY 10 QUESTIONS.. THEY ARE SIMPLE ONE FROM NUMBER SERIES,BOATS,TIME & DISTANCE,PROFIT &LOSS,FIND OUT THE NUMBER ? 9 25 4 36 81 64 49 AND surveillance SPELLINGS E.T.C

1631