Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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
No new posts ISSUE IN copying Sequential file reco... thesumitk JCL & VSAM 2 Wed Dec 13, 2017 3:07 pm
No new posts query to fetch record which has only ... maxsubrat DB2 12 Mon Dec 11, 2017 5:03 pm
No new posts File Tailoring -- Temporary dataset i... samzee71 CLIST & REXX 3 Fri Dec 01, 2017 3:12 am
No new posts Rexx - File tailoring samzee71 CLIST & REXX 10 Thu Nov 30, 2017 10:47 pm
No new posts Extract record for change in combinat... Trinadh DFSORT/ICETOOL 6 Thu Nov 23, 2017 3:32 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us