Thursday, November 20, 2008

What is STATIC call in COBOL?

In COBOL, The static form of the CALL statement specifies the name of the subroutine as a literal:
CALL 'A' USING arguments , where 'A' is exact name of the program which we want to invoke.

This is the static form of a subroutine call. The compiler generates object code for this which will cause the linker to copy the object module A.obj into your executable when it is linked.
So, if you modify "A" and recompile it, you must also relink all of the executables that call "A", because the each of the executables contains its own copy of "A".

Hope you gained something from this article. Please do provide your comments or reactions.

No comments: