$ERR_CURSERR

334

ID must be a non select cursor

ID not SELECT cursor

Invalid cursor ID

See Trapping runtime error messages in SQL Connection programs.