File status must be checked both while opening and reading
the file or only while reading the file?
Answer Posted / raj
At the time of reading is enough. There is only one case of
getting abend at the time of opening i.e, If that file
doesn't exists.But in general the programmer doesn't open
any file if that one is not exists so there will be no
negative effect if we insert the File status check Opening
file.
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
Explain how you can characterize tables in cobol?
Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.
What guidelines should be followed to write a structured cobol prgm?
Which division and paragraphs are mandatory for a COBOL program?
i need a small 3d program using inline and outline.
i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?
What is rmode(24)
Explain about different table spaces.
What is rmode(any) ?
1.Is it possible to move the data from 99.99 to 99v99? 2.What is the CICS-vsam Compilation process? 3.In My GDG 5 generation will be there GDG3 got an abend what will happen? 4.In my GDG first generation is +1 And I want to add the new generation what will happen previous generation? 5.How can you give the PIC clause below conditions A). s9 (reddy), B). s9 (5) occurs 5 times? 6.How override the proc from a particular step? and what is symbolic and override Procs?
What is the default value(s) for an initialize? What keyword will allow for an override of the default?
how to convert the recors form vsam file to db2 table tru file aid
Difference between array and sub-script ?
if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.
What is comp-1 and comp-2?