Rewrite Twice?



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.

Thanks!

.



Relevant Pages

  • 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)
  • 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?
    ... sequential file. ... we rewrite the record so we ... second rewrite then fails. ... The Byte-stream File Routines may be used or, ...
    (comp.lang.cobol)
  • Re: Why Apple isnt like Microsoft...
    ... of Windows, where as Leopard is just a minor bug fix of Tiger. ... Vista was supposed to be a rewrite, ... The rewrite now treats the 3D graphics ...
    (comp.sys.mac.advocacy)
  • Re: Over 100 bug fixes coming!!!
    ... is the latest Windows, ... Vista is a complete rewrite, ... enterprises, when you look under the hood, Windows Server 2003 ...
    (comp.sys.mac.advocacy)