The
parameter-list contains
INPUT,
OUTPUT, and
INPUT-OUTPUT parameters in the order defined for the corresponding
PROCEDURE statement. If you specify a
RETURN parameter for the
PROCEDURE statement, you must match it with an
OUTPUT parameter in the corresponding
RUN statement. You cannot specify a
RETURN parameter for a shared library function as a
CHARACTER variable. You must use a
MEMPTR variable to return a character string. See
Passing CHARACTER values to shared library routines for more information. The
RUN statement parameter data types must match the data types of the corresponding parameter definitions for the
PROCEDURE statement. Any mismatch causes a run-time error.