How to find whether a Flat file is empty or not without
Reading a file in COBOL Program. (not using JCL)
Answer Posted / renu
Open the file and check the file code. If it is '10', the file is empty. It is always better to check the file code after every open statement and handle the empty file condition.
| Is This Answer Correct ? | 10 Yes | 8 No |
Post New Answer View All Answers
What is Pic 9v99 Indicates in COBOL?
What is static and dynamic call in cobol?
In which area will you utilize 88 level items in cobol?
Name the divisions, which are available in a cobol program?
what is search and searchall?what is the diffrence between them?give an best example?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
What is the utilization of copybook in cobol?
What are declaratives and what are their uses in cobol?
Define static linking and dynamic linking.
Why would you use find and get rather than to obtain?
What are the various section in data division and briefly explain them.
How to traceback if I am getting SOC7 or SOC4 abend? List down the steps
Write a cobol program making use of the redefine clause.
what is the use of outrecord?
Write some characteristics of cobol as means of business language.