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!
|
|
0
|
|
|
|
Reply
|
dmckeon (34)
|
5/31/2006 3:14:54 PM |
|
On 31 May 2006 08:14:54 -0700 dmckeon@ameritas.com wrote:
:>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?
Can you change it so that it isn't a sequential file?
Otherwise you are out of luck.
Also, be aware the issuing the WRITE does not guarantee that the record is
firmed to disk, especially when there is an abend. The record may be in a
buffer. A CLOSE will force the write. There may be other tools provided by
your COBOL.
--
Binyamin Dissen <bdissen@dissensoftware.com>
http://www.dissensoftware.com
Director, Dissen Software, Bar & Grill - Israel
Should you use the mailblocks package and expect a response from me,
you should preauthorize the dissensoftware.com domain.
I very rarely bother responding to challenge/response systems,
especially those from irresponsible companies.
|
|
0
|
|
|
|
Reply
|
postingid (197)
|
5/31/2006 3:55:35 PM
|
|
<dmckeon@ameritas.com> wrote in message
news:1149088494.470474.70070@i40g2000cwc.googlegroups.com...
> 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.
|
|
0
|
|
|
|
Reply
|
ricksmith (875)
|
5/31/2006 4:39:49 PM
|
|
Rick Smith wrote:
> <dmckeon@ameritas.com> wrote in message
> news:1149088494.470474.70070@i40g2000cwc.googlegroups.com...
> > 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.
Thanks for the input, guys. I'll just close the file and re-read it.
I just thought there might be a trick or a command that I was
unfamiliar with.
|
|
0
|
|
|
|
Reply
|
dmckeon (34)
|
5/31/2006 5:13:47 PM
|
|
|
3 Replies
48 Views
(page loaded in 0.366 seconds)
Similiar Articles: can't declare .double in gas and SIGSEGV (x86_64) - comp.lang.asm ...Hello, I have got (yet another) problem with x86_64/AT&T/gas/gcc. I am trying to rewrite a simple function that calculates arc-cosines in assembly ... Rewrite recursive function as non-recursive. - comp.lang.pascal ...Can anyone please assist me and rewrite this function so that it does not use ... A double-linked structure might help. -- John Stockton, Surrey, UK. Porting Mathlab code to C++ - accuracy problem - comp.soft-sys ...hi, i'm beginner with Mathlab, and my current job is just to rewrite a mathlab ... charming advice to study the problem for some years, I'd suggest to dumb DOUBLE ... How to sort array - comp.lang.awkRewrite as below. > > #!/bin/ksh > # 2008/12/11 > cp /dev/null _abc.txt The normal ... string you're opening, use a variable instead of specifying the same string twice to ... Call GUI function from another GUI - comp.soft-sys.matlab ...Undefined function or method 'GetSlice' for input arguments of type 'double'. ... Second: Rewrite GetSlice where you're calling it from and use setappdata/getappdata ... comp.infosystems.www.servers.ms-windowsNeed help with .htaccess rewrite rules 0 126 (3/9/2011 11:22:46 PM) Hi, For some reasons for every post I create on my site another version is crea= ted with a blank ... how to sum a derived column - comp.databases.ibm-db2SELECT SUM(used) should be SELECT SUM("used") or remove double quotations from ... Here is an example of rewrite. SELECT SUM(used) FROM ( SELECT COUNT(*) as ... Reading and modifying XML file using MATLAB - comp.soft-sys.matlab ...Ultimately, I would like to change some parameter values using MATLAB and rewrite ... Read file twice and modify content - comp.lang.awk Reading and modifying XML file ... BattleShip Game App using Swing - comp.lang.java.programmer ...I would like to also prevent them fromchoosing the same spot twice.What should I use ... rewrite glRotate? - comp.graphics.api.opengl Hi, I have some game engine, where you can ... 64-bit byteswapping and legacy programs - comp.lang.fortran ...Since at the time the only 64-bit quantities used were double precision float, I ... it passing an INTEGER*8 argument (equivalenced to a > REAL*8) If you rewrite the ... Rewrite (visual novel) - Wikipedia, the free encyclopediaThe rankings were at No. 9 in January, No. 4 in February, No. 3 in March, and twice at No. 1 in April and May. Rewrite ranked first in terms of national sales of PC games ... URGENT: rewrite 25 articles each twice | Article Rewriting ...I have 25 articles that need to be rewritten TWICE using this method (total 50) change first word of beginning of each article change 3 words inside each 7/19/2012 9:14:50 PM
|