HP3000-L Archives

June 1997, Week 2

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
"Eric H. Sand" <[log in to unmask]>
Reply To:
Eric H. Sand
Date:
Tue, 10 Jun 1997 17:42:35 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (37 lines)
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]

ATOM RSS1 RSS2