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

Answers were Sorted based on User's Feedback



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

Answer / 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

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

Answer / suputhru

I agree with vikas,

only in 2 modes: Output and Extend.

Is This Answer Correct ?    2 Yes 0 No

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

Answer / elite group

output or i/o mode

Is This Answer Correct ?    3 Yes 3 No

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

Answer / archana

Output, i/o and extended mode.

Is This Answer Correct ?    3 Yes 3 No

Post New Answer

More COBOL Interview Questions

In a program, there are 2 sections defined say SECTION-A and SECTION-B. There is a paragraph say CALC-INT in both the sections. If this para has to be called directly for SECTION-A, then PERFORM CALC-INT will not work as it is present in both sections. How the PERFORM statement has to be coded here?

5 Answers  


Explain how to differentiate call by context by comparing it to other calls?

0 Answers  


Can anyone explain me CALL procedure in COBOL.Does it carries similarities like call by reference in C.

1 Answers  


if a dataset is already created with fixed length but after that i want to change fixed length to variable length then how is it possible

3 Answers   IBM,


In file1 have 80 records are like d1,d2,d3......D80. File2 have 1000records are like a1d1,a1d2,a3d3.....Etc. I want matching records in file3 ? Plse tell me the matching logic???I want answer only in cobol ?Not using any tool or jcl?

1 Answers   CSC,






What is a subscript ?

3 Answers  


In A cobol program , we can use COPY Statement in FILE- SECTION / WORKING-STORAGE SECTION / ENVIRONMENT DIVIION basically what is the difference

3 Answers   IBM,


in real time what is the suitable exp where in-stream procedure is better then catalog procedure.

1 Answers  


01 a pic x(6) value is abcdef 01 b pic x(3) move a to b wht will be the value in b ?

3 Answers   Patni,


Hi All, Can anyone tell me how we can MOVE value of a X(19) variable to a S9(17) COMP-3 variable? Answer with an Example will be of great help.

6 Answers   EDS,


What are differences between COBOL and java ? why we are giving more preference to COBOL ?

3 Answers   TCS,


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

0 Answers  


Categories