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


Please Help Members By Posting Answers For Below Questions

What are all the divisions of a COBOL program?

650


How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?

683


What is the difference between a binary search and a sequential search what are the pertinent cobol?

714


HOw can I get the negative sign while deduct high value from low value

1775


what are decleratives in cobol?

1815






What type of SDLC u followed? Why?

1505


example for sub strings ? and refernce modifications whit output pls

1825


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.

914


What is the utilization of copybook in cobol?

642


What is the difference between structured cobol programming and object alternativelyiented cobol programming?

690


how do you reference the esds vsam file formats from cobol programs

616


i want a program using by if, evaluate , string, unstring, perform, occurs?

4026


how we sort two input files based on a common column and giving one o/p file please send me the coding logic?

1634


if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need

841


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.

2041