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


Please Help Members By Posting Answers For Below Questions

1.give the details about WHEN OTHER. 2. how many form are available in evaluate.

1616


What are the pertinent COBOL commands?

2626


What is a report item?

741


Is it possible that the redefines clause has different picture clauses compared to the one it redefined?

678


how to move the records from file to array table. give with code example

2223






) what is the difference between AID and HANDLE AID?

1637


What is rmode(any) ?

686


What is inspect in cobol ?

806


Difference between cobol and cobol-ii?

715


How do you define a variable of comp-1 and comp-2?

707


Can we redefine the field of x(200) to less than 200?

822


What is the difference between binary search and sequential search?

643


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...)

1931


I have a File that has duplicate records. I need only those records that occur more than thrice.?

8662


What is rmode(24)

683