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
 

 

Sequence error: KEY HAS CHANGED BETWEEN THE READ AND REWRITE

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    IBMMAINFRAMES.com Support Forums -> ABENDS & Debugging
View previous topic :: :: View next topic  
Author Message
hiandrew

New User


Joined: 30 Jun 2005
Posts: 5

PostPosted: Thu May 10, 2007 5:56 pm    Post subject: Sequence error: KEY HAS CHANGED BETWEEN THE READ AND REWRITE
Reply with quote

Hi,


Can u anyone please tell me, What could be the reason for the following abend.

READ ERROR
A SEQUENCE ERROR FOR A SEQ. ACCESSED INDEXED FILE.
THE KEY HAS CHANGED BETWEEN THE READ AND REWRITE.


Thanks and regards,
Andrew.J
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Thu May 10, 2007 8:17 pm    Post subject:
Reply with quote

Hello,

A common cause for this type of error is that the program read a record using "thefirstkey", but when it went to update the record, the value was changed in the code to "anupdatedvalue".

If you look thru your code, you may find someplace where the key value is being "moved to" between the read and the re-write. This could be at the field or group level.
Back to top
View user's profile Send private message
Bitneuker

CICS Moderator


Joined: 07 Nov 2005
Posts: 1105
Location: The Netherlands at Hole 19

PostPosted: Fri May 11, 2007 1:05 am    Post subject:
Reply with quote

Also keep in mind that the DISP parameter may be a part in the game icon_wink.gif
Back to top
View user's profile Send private message
hiandrew

New User


Joined: 30 Jun 2005
Posts: 5

PostPosted: Fri May 11, 2007 12:37 pm    Post subject: Re: Sequence error: KEY HAS CHANGED BETWEEN THE READ AND REW
Reply with quote

The interesting thing is, the file is opened in Input mode in the program and being read sequentially. There is no write or rewrite for this file.
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3158
Location: Tucson AZ

PostPosted: Fri May 11, 2007 5:30 pm    Post subject: Re: Sequence error: KEY HAS CHANGED BETWEEN THE READ AND REW
Reply with quote

hiandrew wrote:
READ ERROR
A SEQUENCE ERROR FOR A SEQ. ACCESSED INDEXED FILE.
THE KEY HAS CHANGED BETWEEN THE READ AND REWRITE.
Without message numbers, I'd tend to believe that the error is a program generated error and maybe issued in error....
Look for the logic that generated the error text and then look through the program for way to get to the error text logic. maybe there you can find why your program is branching to that logic.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   This topic is locked: you cannot edit posts or make replies.    IBMMAINFRAMES.com Support Forums -> ABENDS & Debugging All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts READ A PACKED "NEGATIVE" FI... jdesouza CA Products 3 Tue May 02, 2017 11:43 pm
No new posts Read of TDQ fails in LENGERR Tracy Hansen CICS 10 Wed Apr 05, 2017 12:10 am
No new posts IDC2902I Error tzeche ABENDS & Debugging 2 Tue Mar 28, 2017 11:39 am
No new posts Need help with below DB2 error ashek15 DB2 3 Sat Mar 18, 2017 5:56 am


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