RE: what is the difference between static call and dyn...
Static calls refer to calls made to subprograms that was link-edited to the main program at compile time. That is the subprogram's object code is part of the main programs object code. This is established on compile time with the NODYNAM compiler option.Dynamic calls refer to calls made to programs with separate object code from the main program. This is established on compile time with the DYNAM compiler option.Subprogram called in STATIC mode will always contain values from previous calls if the INITIAL keyword was not coded in the Program-ID declaration in the subprogram's IDENTIFICATION DIVISION. But you can reset the values by coding CANCEL from the main program.Subprogram called in DYNAMIC mode will always be in initial state.Hope this helps.
RE: what is the difference between static call and dyn...
in the case of static call the mainprogram and subpgms r loaded into the mainmemory initially.in the case of dynamic call only the mainpgm is loaded first and the subpgm is loaded only when a call to it is made.so the memory utilization is good in dynamic call.
RE: what is the difference between static call and dynamic call?
If we do any chnages to sub-pgm need to compile both main and sub pgms in STATIC call where as in DYNAMIC call need to compile sub-pgm ALONE Cheers Hema
RE: what is the difference between static call and dynamic call?
static call :the subprogram will call like 'subpgmname' dynamic call : the sub program will be calling with variable. ex :01 spgm pic x(5). move subpgm to wspgm call spgm static :call a single program dynamic : we can call many programs here we will maintain seperate load module if there were any changes are in sub program need not to recompile mainpgm and subpgm subpgm compilation is enough static: if there were any changes in sub pgm.( compile) both subpgm&main program need to be re recompile because both load modules will be in single load library so subpgm load module should be linkedited with mainpgm-load module. dynamic loadmodule will pick up at runtime only static------>compile......ubload+linkload....run dynamic--->compile...................................run