I replied to Efren directly, but I had intended this for the
HP3000-L...
Efren wote:
<
Im still working on the year 2000 project. Im doing a serial read
using
cobol, to update the date fields. To update critical items I delete
the
record then write the record using the updated fields. The problem
is
that I lose my key so when it goes to read serial again it gives me a
end of file error. How can I retain my place after doing a dbput and
not lose my key for the next serial read ?
>
Efren,
When I read "down" a chain and need to delete a record and/or
modify
a critical item, I either save the record contents or the relative
record number
of the record I need to modify. After coursing the chain and saving
the
relative record numbers I re-read those records via the relative
record number,
delete the record and re-add it via DBPUT after making any
modifications.
Deleting a record in the middle of a chained read and then
resuming what you
think is a serial read of the next record will always produce
problems.
Eric Sand
Data Research Associates
[log in to unmask]