| |
GeekInterview.com > Interview Questions > Mainframe > COBOL
| Print | |
Question: COBOL dynamic call and static call
Answer: what is difference between dynamic call and static call with examples ..? |
| June 06, 2008 07:58:19 |
#1 |
| shaikmf |
Member Since: June 2008 Total Comments: 2 |
RE: COBOL dynamic call and static call |
Static Call: 1. in COBOL if you Code a call statement as fooliows is a static call. CALL 'Pgm1' Using Var1, Var2, ... 2. Compiler option for Static call is NODYNAM 3. Calling Program and Called program loads are available in same loadmoduale. 4. It occupies more Real memory due to all loadmodules are available in real memory. 5. Processing will be Fast due to all programs loads are available in memory.
Dynamic Call: 2. If you write a Call statement by using Call leterals this type of call is called as Dynamic call as follows. CALL WS-PGM1 Using Var1, Var2,... 2. Compiler Option for Dynamic call is DYNAM. 3. Called program and calling program will be available in separate loads. 4. On Execution Program will occupy less memory due to only active program load will be loaded in the real memory. 5. Processing speed will be slow compare with Static call. because main program calling Subprogram then main program will be replaced with subprogram in the memory and once sub program finishes execution again main program will be loaded so loading and unloading will decrease speed of execution. |
| |
Back To Question | |