Re: Rewrite Twice?




<dmckeon@xxxxxxxxxxxx> wrote in message
news:1149088494.470474.70070@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I have a situation where I'm processing a request that comes in a
sequential file. At the end of processing, we rewrite the record so we
know processing is complete. I'm now adding some logic and want to
perform a rewrite in the middle of processing in case the program
abends in the middle, we can recover properly. Unfortunately, the
second rewrite then fails. Is there any way to rewrite a record twice
or do I need to close the file and re-read it back to the point I was
at?

I'm using Microfocus Workbench on Windows XP.

The Byte-stream File Routines may be used or,
perhaps, a second file that contains only the ID
of the record being processed, so that only one
rewrite is required.



.



Relevant Pages

  • Re: Rewrite Twice?
    ... sequential file. ... we rewrite the record so we ... second rewrite then fails. ... I'll just close the file and re-read it. ...
    (comp.lang.cobol)
  • Re: Rewrite Twice?
    ... we rewrite the record so we ... :>abends in the middle, we can recover properly. ... Can you change it so that it isn't a sequential file? ... I very rarely bother responding to challenge/response systems, ...
    (comp.lang.cobol)
  • Rewrite Twice?
    ... I have a situation where I'm processing a request that comes in a ... sequential file. ... we rewrite the record so we ... I'm using Microfocus Workbench on Windows XP. ...
    (comp.lang.cobol)