Calling a Compiled Program

The program is called on the server in the following ways:

The command EXEC functions the same way as CALLPGM, except for the difference in execution order requirements as described in Execution Order of Stored Procedures. For simplicity, this chapter refers only to CALLPGM when both CALLPGM and EXEC apply. The SQL EX method has the advantage of being able to also apply intermediate processing to the initial results set before passing the final answer set to the calling request.

The term program is also used to refer to a compiled program.

The following figure illustrates calls to programs made from EDARPC and Dialogue Manager.

The following figure illustrates the libraries in which compiled programs and Dialogue Manager FOCEXEC procedures reside. See Introducing Stored Procedures, for details on stored procedure libraries and stored procedure execution order.


iWay Software