-30002 THE SQL STATEMENT CANNOT BE EXECUTED DUE TO A PRIOR CONDITION IN A CHAIN OF STATEMENTS

Explanation

An SQL statement was chained to PREPARE, but the PREPARE statement has received a warning SQLCODE that requires the program or user to either re-issue the chained statement or issue a different SQL request. This error can occur only in a client/server environment.
  • A distributed client using DRDA has chained an OPEN statement to a PREPARE, but the PREPARE statement received SQLCODE +495.

System action

The statement cannot be executed as chained.

Programmer response

The statement must be sent again as a separate request.

SQLSTATE

57057