File status must be checked both while opening and reading
the file or only while reading the file?
Answers were Sorted based on User's Feedback
Answer / nagaraj ramamoorthy
As a good programming practice, it will be good if you
handle/include all possible error combination in the
program. so the file status must be checked in both cases.
| Is This Answer Correct ? | 8 Yes | 0 No |
Answer / 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 |
i have mainprogram and subgram...if i compile mainprogram without stop run..what will u get in compilation time?
What is the difference between binary search and sequential search?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
What is tne need to use sub programs in Cobol?
I want to remove a duplicates form a given input field using cobol program. please Any one help me out to solve this ... Thanks in Advance.
How can we find that module can be called – whether DYNAMICALLY or STATICALLY?
what is difference between the sysabend and userabend?
subscript and index r not coded in u r application program what will happen?
What is redefines clause in COBOL?
I had 100 records and i want to execute last three records by using cobol programming?what will be coding?
can any one help -s806
What is the difference beetween Arrays and Tables in Cobol? please dont give the answer that arrays in cobol terminology is called tables......