View previous topic :: View next topic
|
Author |
Message |
er_vijaysingh
New User
Joined: 06 Aug 2007 Posts: 4 Location: chennai
|
|
|
|
hi all,
can any one tell me how to read multiple records having same alternate key using read browse next command?
Actually my problem is Read browse next is reading only one record from multiple records having same alternate key but I want all the record to be read.
please reply me soon
Thanks
vijay |
|
Back to top |
|
|
socker_dad
Active User
Joined: 05 Dec 2006 Posts: 177 Location: Seattle, WA
|
|
|
|
Is this a VSAM file? IMS? Sequential?
Many of the applications I work with have similar situations: read for a "base" key - usually part of the full key - and process until the base key is no longer equal using get next or read next logic.
Post your code and let us take a look at it. |
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
er_vijaysingh wrote: |
Actually my problem is Read browse next is reading only one record from multiple records having same alternate key but I want all the record to be read. |
Unless I'm missing something, a read next should continue to get all the records....What does the manual say? |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
Hi vijay,
Put your read next in a perform until the status key = 00 or eof. If there are more alt key recs the status is 02.
Don't forget to init the status before each perform. |
|
Back to top |
|
|
|