View previous topic :: View next topic
|
Author |
Message |
akhi007
New User
Joined: 30 Jan 2006 Posts: 35 Location: Richmond
|
|
|
|
I am trying to write an output file with the disposition of NEW,CATLG,CATLG. But my program aborts in midway due to some condition handled in the program. The last record being written into the file was missing in the output file.
Note:- Its writing all the other records except the last record. But one more thing, if we are closing the output file before abending, its writing all the records. |
|
Back to top |
|
|
Phrzby Phil
Senior Member
Joined: 31 Oct 2006 Posts: 1042 Location: Richmond, Virginia
|
|
|
|
Mostly likely your output file is double-buffered. When it aborts, the last record "written" has not yet been actually written. On normal termination, the system handles this correctly.
Try single buffering - see the SELECT statement's RESERVE clause. |
|
Back to top |
|
|
|