Hello, I am new to the forum. I am starting to program in Cobol / DB2 under Z / OS with HERCULES.
In my program I declare a cursor called (CUR_EMPLEADO) and when I try to execute the FETCH it gives the error:
IGYPS0209-W DSNH521I DSNHSM3 LINE 138 COL 11 THE FETCH FOR CURSOR 'CUR_EMPLEADO' IS
ASSUMED TO APPLY TO A DYNAMIC ALLOCATE CURSOR STATEMENT
The SQLCODE of OPEN CURSOR and CLOSE CURSOR is 0, but the SQLCODE of FETCH is (SQLCODE: 000000050M)
The error has me confused because it does not seem to be an error code. I hope someone can help or give me an idea.
Thank you.