What are differences between Static Call and Dynamic Call?

Answer Posted / siri

STATIC CALL:-
------------
STATIC CALL IS IDENTIFIED BY A CALL IS
LITERAL..EX:-CALL'PGM1'....COMPILER OPTION IS NO DYNAM...ALL LITERAL CALLS ARE CONSIDER AS STATIC CALLS...OBJECT CALLS ARE LINKED BEFORE THE EXECUTION..STATIC CALL IS FAST..LOAD MODULE WILL BE LARGE....LESS FLEXIBLE...SUB PROGRAMS UNDERGOES TO CHANGE NEED TO RECOMPILE MAIN PRG ALSO..

DYNAMIC CALL:-
------------
IDENTIFIED BY A CALL IS VARIABLE...MOVE 'PGM1' TO WS-PGM
CALL 'WS-PGM'
COMPILER OPTION IS DYNAM...OBJECT CODS ARE LINKED DURING THE EXECUTION....SO PRG FIRST MOVE TO THE WORKING STORAGE VARIABLE AND NEST CALL THE WORKING STORAGE VARIABLE...PROCESS IS SLOW SO DYNAMIC CALL IS SLOW COMPARE TO STATIC CALL.....ITS NO NEED TO RECOMPILE THE MAIN PROGRAM
WHEN EVER THE SUB PROGRAM UNDER GOES TO CHANGE...THIS IS THE
MAIN ADVANTAGE IS IN DYNAMIC CALL....

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the utilization of copybook in cobol?

650


What is redefines clause in COBOL?

844


I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue

1927


What is the difference between perform … with test after and perform … with test before?

877


how do you define single dimensional array and multidimensional array in your cobol?

667






For rewrite, why is it mandatory that file needs to be opened?

620


Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?

816


how do you reference the ksds vsam file formats from cobol programs

660


I have a File that has duplicate records. I need only those records that occur more than thrice.?

8637


What is the LINKAGE SECTION used in COBOL?

885


What is the local-storage section?

681


if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need

851


explain sorting techniques in cobol program?

686


Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?

706


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