IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

RIDFLD value changes in READNEXT


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
iliganon

New User


Joined: 09 Jun 2010
Posts: 4
Location: Philippines

PostPosted: Thu Jun 10, 2010 12:16 pm
Reply with quote

Hi!

I have this problem when doing a browse on a VSAM KSDS.

In STARTBR and READNEXT, the same RIDFLD and KEYLENGTH are used (obviously). I used the GENERIC and EQUAL options in STARTBR. When all the records containing the RIDFLD are read in READNEXT, the RIDFLD value changes, and the file is read until EOF.

I was assuming that if all the records containing the RIDFLD are browsed/read, a NOTFND condition will occur. Instead, it continues to read the next record in the file until the ENDFILE condition occurs. I saw this using CEDF and noticed that the RIDFLD value changed.

Is this normal during READNEXT?
Back to top
View user's profile Send private message
Binop B

Active User


Joined: 18 Jun 2009
Posts: 407
Location: Nashville, TN

PostPosted: Thu Jun 10, 2010 2:36 pm
Reply with quote

Hi iliganon,

Welcoming you the forum ...

Giving below a snapshot of the Manuals ... Hope this clears your doubt ...
Quote:
RIDFLD(data-area)
....
Even if the browse is generic, this field should always be large enough to accommodate the complete record identifier. This is because, on completion of the READNEXT command, the field is updated by CICS with the complete identification of the record retrieved.
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Thu Jun 10, 2010 5:53 pm
Reply with quote

iliganon wrote:
I was assuming that if all the records containing the RIDFLD are browsed/read, a NOTFND condition will occur. Instead, it continues to read the next record in the file until the ENDFILE condition occurs. I saw this using CEDF and noticed that the RIDFLD value changed.

Is this normal during READNEXT?
Yes, it is normal.
The STARTBR only establishes a starting point for the READNEXT, it does not limit the range of the READNEXT.
Back to top
View user's profile Send private message
iliganon

New User


Joined: 09 Jun 2010
Posts: 4
Location: Philippines

PostPosted: Fri Jun 11, 2010 3:57 am
Reply with quote

Thanks guys! icon_biggrin.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CICS

 


Similar Topics
Topic Forum Replies
No new posts E1BRESP 22 while doing readnext CICS 2
No new posts CICS Question RE: Browse, Readnext an... CICS 7
No new posts Problem in READNEXT CICS 6
No new posts How to update the sequence of record ... CICS 2
No new posts EXEC CICS DELETE without specifying R... CICS 3
Search our Forums:

Back to Top