IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Missing Last record in the output file while writing


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
akhi007

New User


Joined: 30 Jan 2006
Posts: 35
Location: Richmond

PostPosted: Fri May 11, 2007 7:07 pm
Reply with quote

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
View user's profile Send private message
Phrzby Phil

Senior Member


Joined: 31 Oct 2006
Posts: 1042
Location: Richmond, Virginia

PostPosted: Fri May 11, 2007 7:54 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
Search our Forums:

Back to Top