Library /sys$common/syshlp/SQL$HELP72.HLB  —  Errors  SQL_ERRORS, STANOTSEL
  Cursor can only be used with prepared SELECT statements

  Explanation:  You attempted to declare a cursor based on a
  prepared statement that was not a SELECT statement.  Cursors can
  be based only on SELECT statements.

  User Action:  Use EXECUTE to execute this statement.
Close Help