What is the mode in which you will OPEN a file for writing?
Answers were Sorted based on User's Feedback
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 |
Answer / suputhru
I agree with vikas,
only in 2 modes: Output and Extend.
Is This Answer Correct ? | 2 Yes | 0 No |
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?
Explain how to differentiate call by context by comparing it to other calls?
Can anyone explain me CALL procedure in COBOL.Does it carries similarities like call by reference in C.
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
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?
What is a subscript ?
In A cobol program , we can use COPY Statement in FILE- SECTION / WORKING-STORAGE SECTION / ENVIRONMENT DIVIION basically what is the difference
in real time what is the suitable exp where in-stream procedure is better then catalog procedure.
01 a pic x(6) value is abcdef 01 b pic x(3) move a to b wht will be the value in b ?
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.
What are differences between COBOL and java ? why we are giving more preference to COBOL ?
Can a Search can be done on a table with or without Index?