View previous topic :: View next topic
|
Author |
Message |
Lavanya_Dhushetty Warnings : 2 New User
Joined: 30 Aug 2007 Posts: 24 Location: Chennai
|
|
|
|
How to append record to an already existing flat file using COBOL?
Answers:
a. By OPEN-ing the file in EXTENDED mode
b. By OPEN-ing the file in I – O mode and writing after EOF is reached
c. None
d. By OPEN-ing the file in OUTPUT mode
e. It is not possible to append records to a flat file from COBOL
The given answer is a.
But from the manuals it is either in extended mode or output mode. |
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
Lavanya_Dhushetty wrote: |
The given answer is a.
But from the manuals it is either in extended mode or output mode. |
Good, but could you point me to the text in the manual that says that output can be used to extend? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
The COBOL Open OUTPUT has been used to append records to an existing file has been used for many years (needs DISP of MOD).
Not sure that EXTEND is needed to append records to an existing file
Maybe all of that has been changed |
|
Back to top |
|
|
|