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

Sequence error: KEY HAS CHANGED BETWEEN THE READ AND REWRITE


IBM Mainframe Forums -> ABENDS & Debugging
Post new topic   This topic is locked: you cannot edit posts or make replies.
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
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

Moderator Emeritus


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

PostPosted: Thu May 10, 2007 8:17 pm
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: 1104
Location: The Netherlands at Hole 19

PostPosted: Fri May 11, 2007 1:05 am
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
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: 3156
Location: Tucson AZ

PostPosted: Fri May 11, 2007 5:30 pm
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. View Bookmarks
All times are GMT + 6 Hours
Forum Index -> ABENDS & Debugging

 


Similar Topics
Topic Forum Replies
No new posts PKZIP error ZPFM121E and ZPCE009E JCL & VSAM 6
No new posts OpenPGP Decryption job getting LRECL ... IBM Tools 7
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Error when install DB2 DB2 2
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
Search our Forums:

Back to Top