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

I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?

1808


what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.

8172


How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?

650


i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc

2107


What are declaratives and what are their uses in cobol?

714






If you are current on the owner of a set, what is the difference between obtain next and obtain first?

644


Can we change the password using ALTER? anyone tried and changed?

1552


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

711


What are the different rules for performing sort operation?

766


Why did you choose to work with ibm mainframe cobol programming?

631


A table has two indexes defined. Which one will be used by the SEARCH?

759


what are decleratives in cobol?

1831


How do you reference the fixed block file formats from cobol programs

709


What is the difference between PIC 9.99 and PIC9v99?

783


How can we find that module can be called – whether DYNAMICALLY or STATICALLY?

714