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

Answer Posted / anusha

Hope the dataset browse option (ISPF option) will tell
you 'DATASET is EMPTY' if no records in the file.

Is This Answer Correct ?    3 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how do you reference the fixed unblock file formats from cobol programs

919


Write down the divisions of cobol program?

837


What is a SSRANGE and NOSSRANGE?

1107


What are all the divisions of a COBOL program?

882


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

905


I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.

1350


What is the default value(s) for an initialize and what keyword allows for an override of the default?

951


What are the various section in data division and briefly explain them.

906


What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?

903


In COBOL, what is the different between index and subscript?

945


) what is the difference between AID and HANDLE AID?

1883


Describe the cobol database components?

886


Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc

1035


What is difference between static and dynamic call in cobol?

1018


If you are current on the owner of a set, what is the difference between an obtain next and obtain first? Actually in which topic will we use dis???Plz explain it clearly

2874