View previous topic :: View next topic |
Author |
Message |
apru Beginner
Joined: 15 Feb 2014 Posts: 25 Topics: 6
|
Posted: Wed Apr 27, 2016 7:39 am Post subject: Reg:Issue with VSAM Sequential Read in CICS |
|
|
Hi
I am trying to read a VSAM file sequentially using a CICS program.
I have made use of the commands - STARTBR , READNEXTand ENDBR for this operation to perform read from the beginning of the file (X'00') till END OF FILE condition.
The program works fine for the first 2 transactions.Thereafter only the last record of the file is fetched even after setting the pointer to the beginning of the file (X'00') .
I am not able to trace the cause for this abnormal behaviour.
Request your inputs. |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12367 Topics: 75 Location: San Jose
|
Posted: Wed Apr 27, 2016 11:34 am Post subject: |
|
|
apru,
What kind of the vsam cluster is that you are reading? KSDS? RRDS? LDS?
I am guessing that you are performing this test in your test region. Are you sure that the test vsam cluster has more than 2 records?
Did you Repro the file you are having a problem and make sure that you have more records?
Did you make sure the filenames matches with CICS FCT entries? _________________ Kolusu - DFSORT Development Team (IBM)
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
www.linkedin.com/in/kolusu |
|
Back to top |
|
|
apru Beginner
Joined: 15 Feb 2014 Posts: 25 Topics: 6
|
Posted: Wed Apr 27, 2016 8:45 pm Post subject: |
|
|
Hi kolusu
The VSAM is KSDS and the filename does match with the FCT entry.
The thing is I am able to read the whole dataset the first two times the transaction is hit.
From third time,I am able to read only the last record. |
|
Back to top |
|
|
apru Beginner
Joined: 15 Feb 2014 Posts: 25 Topics: 6
|
Posted: Wed Apr 27, 2016 8:53 pm Post subject: |
|
|
kolusu
When I did CEDF I found that the READNEXT is taking only the last record even after setting pointer to first record in STARTBROWSE.
But for the first two transactions, the READNEXT is taking the frist record. |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12367 Topics: 75 Location: San Jose
|
|
Back to top |
|
|
|
|