This example tests the statement identified by the host variable :reqid_var for completion and returns the appropriate exception or completion code to SQLCODE or SQLSTATE.
The name contained within :reqid_var is defined by the ASYNC clause using the async_statement_modifier variable.
TEST :reqid_var COMPLETION