HPE NonStop Compute
1857991 Members
8458 Online
110382 Solutions
New Discussion

sql/mp error -8412

 
Hireme
New Member

sql/mp error -8412

I get a sqlcode -8412 on a FETCH in a COBOL program.  Manual is not a help; manual says there is a type incompatability.
I define a cursor to select all columns.  I use and INVOKE AS statement.  I use a FETCH INTO operation.  The OPEN is successful.  The FETCH fails on the first execution.

I used an INVOKE statement (with some editing, of course) to create both the SELECT list of columns and the buffer into which the FETCH will deposit each row. 

I don't see what is wrong.

Any thoughts to send my way?

Thanks!