What are differences between Static Call and Dynamic Call?
Answer Posted / rajesh
There are lot of differences. Some of them are
1.If you call the subprogram by hardcoding it into the
program it is known as static program whereas calling the
subprogram by means of a working storage variable is known
as dynamic call.
Static call: CALL ''SUBPRG1''
Dynamic call: CALL WS-SPRGNAME
2.If you want to execute the modules with static call, the
load module will collectively contain the loadlibs of all
the modules involved.(Both calling and the called).
In case of Dynamic the loadlib contains the loadmodule of
the calling module alone.
3.If u want to call programs depending on some condition
(ie not every time with calling pogram must use Dynamic
call).If subprograms need to be called for everytime with
callling programs must use static call.
4.The module involving static call takes more time in
compilation process whereas dynamic takes more time to run.
These are some of the major differences.Please let me know
if i m wrong anywhere.
Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
IF I mention stop run in CICS what happens?
how do you reference the fixed unblock file formats from cobol programs
How to use the same COBOL program in Batch and CICS on lines? explain with an example
What are the different open modes available in cobol?
How do you get the data to code the BMS macro?
which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad
What is static and dynamic call in cobol?
Name some of the examples of COBOl 11?
Our issue is there seems to be a disconnect, or no link, between our SELECT statement and our SD. We had SELECT SORT-FILE and SELECT SORT-FILE ASSIGN TO SORTWRK. ASSIGN TO SORTWRK1 SORTWRK2 SORTWRK3 SORTWRK4. with SD SORT_FILE RECORD CONTAINS 7833 CHARACTERS. In either case, at run time, the system ignored our SORTWRK# DD statements and allocated 16 sort works with the SORTWK## naming convention. Any ideas why the system does not recognize the connection? We do not even need the SORTWRK DD statements. Thanks
How can you get the ksds file records into your cobol program?
can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech
How you can characterize tables in cobol?
what is amode(24), amode(31), rmode(24) and rmode(any)?
Why would you use find and get rather than to obtain?
how do you reference the rrds file formats from cobol programs