sivakumar. K. M
New User
Joined: 22 Nov 2005 Posts: 3
|
|
|
|
Hi,
I hope it will clarify your doubt.
static call
Sub and main program refer to same LOAD module is called static call.
Ex. if you do link the main program after compiled, you have to include sub program object module as well in link. So it will create the same LOAD module for both main and sub program
In cobol program, the static call looks as bellow.
CALL "sub-program-name" USING var1, var2......
Dynamic call
sub and main program refer to diffrent LOAD module is called dynamicc call.
Ex. You have to do link the main and sub program seprate after compiled. So it will create the diffrent LOAD module for both main and sub program.
In cobol program, the dynamic call looks as bellow.
MOVE 'sub-program-variable' to sub-program-name
CALL sub-program-name USING var1, var2...
Thanks,
Siva |
|