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
What are all the divisions of a COBOL program?
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
What is the difference between a binary search and a sequential search what are the pertinent cobol?
HOw can I get the negative sign while deduct high value from low value
what are decleratives in cobol?
What type of SDLC u followed? Why?
example for sub strings ? and refernce modifications whit output pls
There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.
What is the utilization of copybook in cobol?
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
how do you reference the esds vsam file formats from cobol programs
i want a program using by if, evaluate , string, unstring, perform, occurs?
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?
if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need
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.