ASA Programming Guide
Embedded SQL Programming
Library function reference
unsigned db_is_working( SQLCA *sqlca );
Returns 1 if your application has a database request in progress that uses the given sqlca and 0 if there is no request in progress that uses the given sqlca.
This function can be called asynchronously. This function and db_cancel_request are the only functions in the database interface library that can be called asynchronously using an SQLCA that might be in use by another request.