1. What operating system are you on? Windows, Unix, OS/390?
2. Is the return code -804 or 804. DB2 has negative and positive SQL return codes.
3. What does the Messages and Codes manual say? Go to
http://www-3.ibm.com/software/data/db2/library/ for DB2 manuals.
4. Don't manipulate any data in the SDLDA. Move it another part of working storage and then manipulate it.