Previous Topic: USE ASYNCNext Topic: Request Identifier (IDENTIFIED BY:)


Syntax

+--USE ASYNC target_pstep (Procedure Step)
| WHICH IMPORTS:...
| IDENTIFIED BY: viewname async_request
| RESPONSE HANDLING: POLL | NOTIFY EVENT | NO RESPONSE
| RESPONSE EVENT: eventhandlername
| RESPONSE SCOPE: PSTEP | GLOBAL
+--WHEN request accepted
+--WHEN request not accepted

The USE ASYNC statement is used to initiate an asynchronous cooperative flow. The clauses of the USE ASYNC statement communicate, to the supporting runtime code, how to process the corresponding response of the request.

As with a USE PStep, the USE ASYNC statement must specify an import view that identifies the data to be sent to the server PStep.

Note: A USE ASYNC statement can only be used to flow to a Procedure Step that is packaged in a server manager. The USE ASYNC command does not support a flow from a windowed client to a non-windowed client.