When specifying the
RUN...ASYNCHRONOUS statement, you can also include
INPUT,
OUTPUT, and
INPUT-OUTPUT parameters similar to the parameters on a synchronous
RUN statement. As with the synchronous
RUN statement, the input parameters represent values passed to the remote procedure. However, unlike the synchronous
RUN statement, the output parameters do not return results from the remote procedure directly on the
RUN...ASYNCHRONOUS statement. The values for these output parameters are not available until the asynchronous request completes and the client handles the associated
PROCEDURE-COMPLETE event. On detecting this event, the client executes the specified event procedure, which returns the values as input parameters to the event procedure. Thus, the output parameters on the
RUN...ASYNCHRONOUS statement serve only as placeholders to map the signature of the remote procedure on the AppServer. For more information, see
Handling the response from an asynchronous request.