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 Compare yesterday's date to the one o... migusd SYNCSORT 1 Fri Sep 22, 2017 11:35 pm
No new posts Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am
No new posts BUILD OUTFIL based on condition other... balaji81_k DFSORT/ICETOOL 13 Fri Sep 08, 2017 11:06 pm
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am
No new posts Copying a ps to member of a existing PDS Deepika Chikyala JCL & VSAM 10 Tue Sep 05, 2017 11:44 am

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