Quantcast
Viewing all articles
Browse latest Browse all 8500

CICS :: RE: CICS Question RE: Browse, Readnext and Rewrite of ESDS File

Author: moezbud
Posted: Sun Mar 05, 2017 6:16 pm (GMT 5.5)

Bill,
I start to read sequentially at the beginning of the ESDS file (RBA = 0) with a startbr and readnext.

After I endbr and rewrite to the file, however, my original readnext has lost its place. Hasn't it? I have to go back to the startbr with the address of the next record on file (which I haven't read yet). At least, that's what seemed to be happening to me when I was testing it. It all started working when I added the record length to the RBA before looping back to my original startbr again.

It's probable that my thinking is hosed here.... But, how else do I get the next RBA so that I can re-start my next browse? If I don't bump it up, the next startbr will just re-read the record that I just finished processing. Won't it?

Thanks!


Viewing all articles
Browse latest Browse all 8500

Trending Articles