Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

RIDFLD value changes in READNEXT

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
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    Post subject: RIDFLD value changes in READNEXT
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    Post subject:
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: 2150
Location: At my coffee table

PostPosted: Thu Jun 10, 2010 5:53 pm    Post subject: Re: RIDFLD value changes in READNEXT
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    Post subject: Reply to: RIDFLD value changes in READNEXT
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    IBMMAINFRAMES.com Support Forums -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts CICS Question RE: Browse, Readnext an... moezbud CICS 7 Sun Mar 05, 2017 5:45 am
No new posts Problem in READNEXT amitc23 CICS 6 Wed Mar 16, 2016 12:06 pm
No new posts How to update the sequence of record ... Gopalakrishnan V CICS 2 Wed Sep 26, 2012 8:21 pm
No new posts EXEC CICS DELETE without specifying R... dmithunibm CICS 3 Thu Dec 09, 2010 2:19 am
No new posts STARTBR and READNEXT problem Robert Sample CICS 5 Thu Apr 22, 2010 7:55 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us