After the decleration of the cursor with a where condition, how can i fetch each row which satisfies the condition ?
I have used this,
EXEC SQL
DECLARE CSR2 SCROLL CURSOR
FOR SELECT BROKER_ID,BROKER_DET
FROM xxxxxx.BROKER_INFO
WHERE BROKER_TYPE='BR-CITY'
END-EXEC
EXEC SQL
FETCH ABSOLUTE :N CSR2 INTO :HS-BROKER-ID, :HS-BROKER-DET
END-EXEC
please suggest a fetch query