CALL procedure-pointer

You can perform a static procedure call or a dynamic program call using the CALL procedure-pointer statement.

Before using the CALL procedure-pointer statement, you must use the Format 6 SET Statement to set the value of the procedure-pointer data item. To set the procedure-pointer data item to an ILE procedure, specify LINKAGE TYPE IS PROCEDURE in the SET statement. To set the procedure-pointer data item to a program object, specify LINKAGE TYPE IS PROGRAM.

You can also use the LINKAGE TYPE clause of the SPECIAL-NAMES paragraph or the LINKLIT parameter of the CRTCBLMOD or CRTBNDCBL command to determine which type of object the procedure-pointer data item is set to. Refer to LINKAGE TYPE Clause for information on using the LINKAGE TYPE clause or the IBM Rational Development Studio for i: ILE COBOL Programmer's Guidefor information on using LINKLIT parameter.