Previous Topic: How to Invoke a Procedure ModuleNext Topic: Branching to a Procedure Module


Calling a Procedure Module

First—Define input or work fields to hold argument values that are sent to the procedure module.

Second—Define input or work fields to receive values returned from the procedure module.

Usually, type 0 work fields are initialized to spaces (for alphanumeric fields) or zeros (for numeric fields).

Third—Issue a CALL statement from a type 7 parameter to the module being invoked:

Fourth—Reset argument values before reissuing a CALL to the same module.