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

Append record to an already existing flat file using COBOL


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Lavanya_Dhushetty
Warnings : 2

New User


Joined: 30 Aug 2007
Posts: 24
Location: Chennai

PostPosted: Tue Sep 18, 2007 7:12 pm
Reply with quote

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

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Tue Sep 18, 2007 7:17 pm
Reply with quote

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

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Sep 18, 2007 7:33 pm
Reply with quote

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 icon_confused.gif

Maybe all of that has been changed icon_question.gif
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 -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 1
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top