We are using 2 files , file one has data, file two is
empty.Using jcl how can we find the other file is empty?

Answer Posted / sundar

Using IDCAMS utility

In SYSIN:
PRINT(infile) COUNT(1)

If this step return 4 then the file is empty otherwise if
return 0 then the file is not empty.

Is This Answer Correct ?    10 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the motivation behind coding class parameter in job statement?

677


How can a jobs execution priority be modified?

789


We can use PASS with permanent datasets also. THEN Which is the condition in which we may use PASS (instead of KEEP) with permanent data sets, while there is no need to specify UNIT and VOL for them like temporary data sets (in cas we use KEEP for permanent data sets) ?

1742


How to compare two files in SYNCSORT and on the mismatch record should be deleted from second file.

5056


What are hierarchy levels in jcl?

942






What parameter directs the output of the job log dataset?

759


i want to store 20 digits . how will u do it in cobol ?

854


What is the function of the dd avgrec keyword in sms datasets?

829


what JCL Procedures?

694


What is 'mounting' of volumes ? Is there anything that a programmer can do in it ? How to find currently mounted volume ?

1984


why should SYSIN DD * statement should not be included inside a PROCedure snippet??? please answer this.. i need to know.

1937


have in 100 records in a file i want to read first 3 records and skip next 3 records and agan i want to read 3 records and again i want to skip 3 records... run a loop from record one to 10 evaluate i/3 if comes even then skip else write to output file

914


What is the purpose of disp parameter?

635


How can an in-stream dataset be terminated?

840


what is “Cond= even” and “Cond=only”?

735