I HAVE A DB2 TABLE WITH 2 ATTRIBUTES
ACCOUNT ID AND ISSUE ID
A PARTICULAR ISSUE ID WILL HAVE MORE THAN 1 ACCOUNT ID ASSOCIATED WITH IT
FOR EXAMPLE THERE IS AN ISSUE ID ABCDEF ... THIS ABCDEF HAS 3 ACCOUNT ID 00000 00001 00002 ASSOCIATED WITH IT
WHICH MEANS ACCOUNT 00000 HOLDS ABCDEF ISSUE AS WELL AS 000001 AND 000002
SO IN MY CICS MAP WHEN THE USER ENTERS A PARTICULAR ISSUE ID ABCDEF I WILL SEARCH THE DB2 TABLE AND THE CURSOR READS 00000 FROM THE TABLE AND LIST HIM AS A PERSON HOLDING THE ISSUE ABCDEF... NOW ON PRESSING ENTER I NEED TO READ THE TABLE AGAIN AND NOW 00000 SHOULD NOT BE CONSIDERED AS IT HAS ALREADY BEEN DISPLAYED INSTEAD 00001 MUST BE READ FROM THE TABLE AND DISPLAYED ON THE CICS SCREEN SIMILARLY NEXT TIME AROUND 00000 AND 00001 MUST BE IGNORED AND 00002 MUST BE DISPLAYED ON THE CICS SCREEN.
I KNOW HOW TO READ THE FIRST RECORD RELATED TO THE ISSUE ID .. BUT THEN THE FIRST RECORD WONT BE IGNORED FROM NEXT TIME AND WILL BE RE READ AGAIN AND AGAIN ...
WHAT IS THE LOGIC TO ACCOMPLISH WHAT I WANT.
THANK YOU