How to find whether a Flat file is empty or not without
Reading a file in COBOL Program. (not using JCL)

Answer Posted / vinodh

Goto ISPF 3.4, give the dataset name hit enter.
Press F11 until you see '%used', if its zero then the file
is empty. This will be useful if you want to validate many
GDG's for emptiness.

Is This Answer Correct ?    3 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the use of outrecord?

1768


Are you comfortable in cobol or jcl?

639


) How do u handle errors in BMS macro?

1423


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

1838


What is amode(31)

716






In which area will you utilize 88 level items in cobol?

712


What are the different types of condition in cobol and write their forms.

654


In COBOL programming, what is PERFORM? What is VARYING?

668


What are all the divisions of a COBOL program?

660


Explain how to differentiate call by context by comparing it to other calls?

683


What happens when we move a comp-3 field to an edited (say z (9). Zz-)?

769


How to traceback if I am getting SOC7 or SOC4 abend? List down the steps

634


How arrays can be defined in COBOL?

661


What is the difference between structured cobol programming and object alternativelyiented cobol?

749


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

8634