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

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

2132


can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech

2174


what is the difference between COBOL2 AND COBOL390?

2703


Write a program to explain size error.

878


What is the difference between binary search and sequential search?

842


What are the pertinent COBOL

2229


How do define dynamic array in cobol.

847


What is the difference between Global and External Variables?

908


Which mode is used to operate the sequential file?

910


What is the compute verb? How is it used?

843


What is the difference between PIC 9.99 and 9v99 in COBOL?

960


What are the different rules to perform a Search?

801


I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......

11490


What is the utilization of copybook in cobol?

866


Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?

1065