GET DIAGNOSTICS failure

If the GET Diagnostics statement fails, SQLState contains a value of ix001. No other failure returns this value. The sqlcode indicates the specific error that caused the failure.