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 are the different rules of SORT operation?
How do we get current date from system with century in COBOL?
How you can characterize tables in cobol?
Explain the configuration section of a cobol program with examples of syntax.
When is inspect verb is used in cobol?
What is the utilization of copybook in cobol? Could we utilize a similar copybook?
Whats the difference between search & search ALL?
What is amode(24)?
What is a SSRANGE and NOSSRANGE?
Can we redefine the field of x(200) to less than 200?
i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this
Which mode is used to operate the sequential file?
What are the access modes of START statement?
explain sorting techniques in cobol program?
How do u write test cases?