What are differences between Static Call and Dynamic Call?

Answer Posted / prince

Static call refers calling of the program in same
storage.Calling the program by its name. The program will be
calling using NODYNAM compiler option.In Static call
subprogram is linked at Compile time.In static call if we
want to edit the subprogram we need to compile both main
program and sub program. Static call calls one
program.Static program takes less time to execute. For
static call both calling and called programs will be having
one load module and they share only one load module.

Dyanamic call refers calling the program may be in differnt
storage.Calling the subprogram by a variable name. The
program is Calling using DYNAM option.In Dyanamic call
subprogram is linked at run time.The program must be in copy
library.In Dynamic call if we want to edit the subprogram we
need to compile only sub program.Dynamic call calls many
program. If the subprogram involves continuous change
Dynamic call is used.But for dynamic calling both calling
and called program have their own seaperate load modules.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which mode is used to operate the sequential file?

658


Why is it necessary that file needs to be opened in I-O mode for REWRITE?

742


What is link edit in cobol?

748


How to remove 2 duplicate records and copy only one using job control language?

737


What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?

670






How to traceback if I am getting SOC7 or SOC4 abend? List down the steps

664


How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?

1926


how can we apply for HSBC exam(Mainframe) in India??? i went to their site and was told to submit my CV ,. etc..( totally confusing...)

1921


Discuss about changing dataset name in proc.

757


What is the difference between next sentence and continue in cobol programing language?

706


How can we find that module can be called – whether DYNAMICALLY or STATICALLY?

708


How do get the result of your program directly on your pc?

1878


Define static linking and dynamic linking.

660


)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?

1520


What is the difference between Call and a Link?

694