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
1.give the details about WHEN OTHER. 2. how many form are available in evaluate.
What are the pertinent COBOL commands?
What is a report item?
Is it possible that the redefines clause has different picture clauses compared to the one it redefined?
how to move the records from file to array table. give with code example
) what is the difference between AID and HANDLE AID?
What is rmode(any) ?
What is inspect in cobol ?
Difference between cobol and cobol-ii?
How do you define a variable of comp-1 and comp-2?
Can we redefine the field of x(200) to less than 200?
What is the difference between binary search and sequential search?
how can we apply for HSBC exam(Mainframe) in India??? i went to their site and was told to submit my CV ,. etc..( totally confusing...)
I have a File that has duplicate records. I need only those records that occur more than thrice.?
What is rmode(24)