I have the following cursor:
EXEC SQL
DECLARE CSR-TEST CURSOR WITH HOLD FOR
SELECT DEPT,EMP_NUM FROM TBL_EMP
FETCH FIRST 1000 ROWS ONLY
END-EXEC
I would like to have the rows returned be controlled by host variable.
The statement will not get past the pre-compiler.
":WS-LIMIT" failed
Tried a couple different definitions
05 WS-LIMIT PIC 9(9) OR PIC S9(9) OR PIC S9(9) COMP-3.
Beat around some manuals, but I am missing something - fill in your joke here - ha ha
Is this even possible?