|
To piggyback on Ricks post, here's the text from the WG4 committee for Cobol which has been there for quite some time. I have reformatted it slightly.... ---------------------------------------------------------------------------- ------ Reference number of working document: ISO/IEC/JTC 1/SC 22/WG 4N 0147 Date: 2001-12-04 Reference number of document: ISO/IEC IS 1989:2001 14.8.47.3 General rules ALL FILES 1) The write file connector is the file connector associated with the write file. If the access mode of the write file is sequential, the open mode of the write file connector shall be extend or output. Otherwise, the open mode of the write file connector shall be I-O or output. If the open mode is not as described, the execution of the WRITE statement is unsuccessful and the I-O status for the write file connector is set to '48'. 2) The logical record released by the successful execution of the WRITE statement is no longer available in the record area unless the file-name associated with record-name-1 is specified in a SAME RECORD AREA clause. The logical record is also available as a record of other files referenced in the same SAME RECORD AREA clause as the associated output file, as well as the file associated with record-name-1. 3) The result of the execution of a WRITE statement specifying record-name-1 and the FROM phrase is equivalent to the execution of the following statements in the order specified: a) The statement: MOVE identifier-1 TO record-name-1 or MOVE literal-1 TO record-name-1 according to the rules specified for the MOVE statement. ---------------------------------------------------------------------------- ------ Terry > -----Original Message----- > From: Rick Klopfer [mailto:rklopfer@daytonprogress.com] > Sent: Wednesday, December 11, 2002 9:25 AM > To: cobol400-l@midrange.com > Subject: RE: COBOL WRITE after OPEN EXTEND results in > CLEAR-AFTER-WRITE > > -- > [ Picked text/plain from multipart/alternative ] > I have been following this discussion...and thinking back to > when I took > COBOL in college during the the dark ages. My instructor used to > mention that the status of an 01 (non-WS) after a WRITE was > "unpredictable". > > Still take that approach today. > > Rick--
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.