What is the mode in which you will OPEN a file for writing?

Answer Posted / vikas pujar

If want to write new records :

1) Output - New records will be written , old will be
overwritten.

2) Extend - New records will be appended to existing ones

Where as :

1) I- O : Used to re-write the existing records, but not to
write new records

Is This Answer Correct ?    14 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between PIC 9.99 and PIC9v99?

778


here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?

6825


I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......

10597


Write the code to count the sum of n natural numbers.

697


How arrays can be defined in COBOL?

663






What are the cobol coding sheets?

664


Can a Search can be done on a table with or without Index?

802


In COBOL, what is the different between index and subscript?

755


I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue

1931


What is a report item?

739


I have one ps file in which there are 3 fileds emp_no,emp_name and leave_app.this ps file information give the detail of employee which is going to apply for leave.suppose emp_no=113430,emp_name=ajay,leave_app=1 that means he is going to apply for 1 day leave.and accordingling the table in db2 will be updated means if he has that no of leave in his account then he will get dat leave and updated acc. in table(leave_balance=previous leave present in table-leave_app).Now i want to check whther the updated result is correct or not by comparing the two ps file using IEBCOMPARE or icetool so what is going to be the two ps file and how its is going to be compare.

2008


how can i see junk values in dclgen or in hostvariable of comp ?

2544


What is the LINKAGE SECTION used in COBOL?

887


What is the Purpose of POINTER Phrase in STRING command in COBOL?

719


What is perform what is varying?

705