Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Append record to an already existing flat file using COBOL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
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    Post subject: Append record to an already existing flat file using COBOL
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: 2150
Location: At my coffee table

PostPosted: Tue Sep 18, 2007 7:17 pm    Post subject: Re: files
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

Site Director


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

PostPosted: Tue Sep 18, 2007 7:33 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Full Time COBOL Software Development ... shally Mainframe Jobs 0 Fri Jan 20, 2017 5:24 am
This topic is locked: you cannot edit posts or make replies. COBOL Software Development Lead at Fi... shally Mainframe Jobs 0 Fri Jan 20, 2017 5:21 am
No new posts SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts OO COBOL compile error Virendra Shambharkar COBOL Programming 3 Tue Jan 10, 2017 6:05 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us