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

Answer Posted / srini

You can do with IDCAMS. Use input as your file and output
is dummy file and have repro count(1) in sysin dd *, if the
file is empty, you will get condition code 4 otherwise you
will get cc '0'.

Is This Answer Correct ?    5 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is rmode(24)

684


What are different data types in cobol?

695


How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?

2103


What are literals?

633


) what is the difference between AID and HANDLE AID?

1637






Write the code to count the sum of n natural numbers.

705


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

763


How you can read the file from bottom?

660


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

2223


write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc

714


What is the utilization of copybook in cobol?

657


What are the cobol coding sheets?

666


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

1616


how do you reference the esds vsam file formats from cobol programs

635


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

753