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 the various section in data division and briefly explain them.
What is the difference between comp and comp-3 usage?
How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.
State the various causes of s0c1, s0c5 and s0c7.
What is the problem of ordered sequential files access?
Our issue is there seems to be a disconnect, or no link, between our SELECT statement and our SD. We had SELECT SORT-FILE and SELECT SORT-FILE ASSIGN TO SORTWRK. ASSIGN TO SORTWRK1 SORTWRK2 SORTWRK3 SORTWRK4. with SD SORT_FILE RECORD CONTAINS 7833 CHARACTERS. In either case, at run time, the system ignored our SORTWRK# DD statements and allocated 16 sort works with the SORTWK## naming convention. Any ideas why the system does not recognize the connection? We do not even need the SORTWRK DD statements. Thanks
what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.
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 is the utilization of copybook in cobol? Could we utilize a similar copybook?
What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?
How do u write test cases?
what is search and searchall?what is the diffrence between them?give an best example?
What is a SSRANGE and NOSSRANGE?
What is the usage of comp fields in cobol?
Is it possible that the redefines clause has different picture clauses compared to the one it redefined?