CPI4348 - The ODP associated with the cursor was hard closed

CPI4348
Message Text: The ODP associated with the cursor was hard closed.
Cause Text: The Open Data Path (ODP) for this statement or cursor has been hard closed for reason code &1. The reason codes and their meanings follow:
  1. Either the length of the new LIKE pattern is zero and the length of the old LIKE pattern is nonzero or the length of the new LIKE pattern is nonzero and the length of the old LIKE pattern is zero.
  2. An additional wildcard was specified in the LIKE pattern on this invocation of the cursor.
  3. SQL indicated to the query optimizer that the cursor cannot be refreshed.
  4. The system code could not obtain a lock on the file being queried.
  5. The length of the host variable value is too large for the host variable as determined by the query optimizer.
  6. The size of the ODP to be refreshed is too large.
  7. Refresh of the local ODP of a distributed query failed.
  8. SQL hard closed the cursor prior to the fast path refresh code.
Recovery Text: In order for the cursor to be used in a reusable mode, the cursor cannot be hard closed. Look at the reason why the cursor was hard closed and take the appropriate actions to prevent a hard close from occurring.