View previous topic :: View next topic
|
Author |
Message |
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Assuming your code is as you posted, the default is ACCESS IS SEQUENTIAL. This requires records be processed in key sequence. You cannot insert a LOW-VALUES record after processing the deletes since the LOW-VALUES record will not be in sequence. This will cause a logic error exactly as you've seen. You must close the file, open it again, and then you should be able to write the LOW-VALUES record. However, considering the significant gaps in the data you've presented us, there's no guarantee that this will work since you may have not mentioned some other critical factor. |
|
Back to top |
|
|
rohitvw
New User
Joined: 04 Feb 2009 Posts: 12 Location: Chennai
|
|
|
|
Hi Robert.
The problem is with access mode only, it should be dynamic to write a record when few records are already present in KSDS file.
Thanks for your help and efforts, I really appreciate that.
I first time used this forum, I am finally very happy as my code is working as required.
Thank you very much.
Regards
Rohit. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Glad to hear you got it working! |
|
Back to top |
|
|
|