Previous Topic: SyntaxNext Topic: Conditional Clauses (WHEN)


Request Identifier (IDENTIFIED BY:)

The application must keep track of each outstanding request, so that it can obtain a corresponding response of a given request. The application indicates the response by the specified ASYNC_REQUEST view. The specified ASYNC_REQUEST Work Set view should be the same view (or at least a view that contains the same values) as was specified on the USE ASYNC statement that initiated the original asynchronous flow.

Due to the inherent, disjointed nature of processing asynchronous cooperative flows, the application logic may be engaged in other processing when a response to an outstanding request becomes available. The GET ASYNC RESPONSE statement gives you the opportunity to determine when the application is best able to attempt to retrieve an outstanding response.