Making static calls

When you use the CALL literal statement in a program that is compiled using the NODYNAM and NODLL compiler options, a static call occurs. With these options, all CALL literal calls are handled as static calls.

About this task

With static calls statement, the COBOL program and all called programs are part of the same program object. When control is transferred, the called program already resides in storage, and a branch to it takes place. Subsequent executions of the CALL statement make the called program available in its last-used state unless the called program has the INITIAL attribute. In that case, the called program and each program directly or indirectly contained within it are placed into their initial state each time the called program is called within a run unit.

If you specify alternate entry points, a static CALL statement can use any alternate entry point to enter the called subprogram.

Examples: static and dynamic CALL statements

Related references  
DLL  
DYNAM  
CALL statement (Enterprise COBOL for z/OS® Language Reference)