When executing the CHECK ASYNC RESPONSE statement, the process flow gives control to an applicable WHEN clause, if it is present. When the block of code associated with the WHEN clause has completed, processing continues with the statement immediately after the CHECK ASYNC RESPONSE statement. All of the WHEN clauses are included in the code when the CHECK ASYNC RESPONSE statement is constructed by the PAD editor. You can delete any of the WHEN clauses, as required.
Control is passed to the associated WHEN clause under the following circumstances:
If this clause is not present, there is no way to know if the response is available using the CHECK ASYNC RESPONSE. Processing continues at the statement following the CHECK ASYNC RESPONSE statement, as in the case where the response is still pending.
If this clause is not present, there is no way to know if the response is available using the CHECK ASYNC RESPONSE. Processing continues at the statement following the CHECK ASYNC RESPONSE statement, the same as if the response is still pending.
If the WHEN invalid ASYNC_REQUEST ID is not present, processing continues at the default error handling code generated for this statement. Processing exits the currently executing code. This may be handled differently if within a GUI event or within an action block. For more information, see the appendix "User Exits" in the Distributed Processing – Overview Guide.
|
Copyright © 2014 CA.
All rights reserved.
|
|