File size / record count

From: Henk (hnkatmweb.co.za)
Date: 01/31/04


Date: Sat, 31 Jan 2004 18:19:49 +0200

Hi

I need to split a file in 2 I have looked at DFSORT but it will distribute
the file as evenly as it can between the 2 datasets.
I.E. I need to split the file into 2 without changing the order of the
records as it is already in sorted sequence when I split it.

Is there a way to get a dataset attributes specifically the size with COBOL
LE on Z/OS. If I can get the file size and divide it by the record length
wich is fixed block I can calculate exactly how many records it contain and
create sysin cards for idcams to split the file into 2.

I need to find out how many records the file contains without reading
through the file. The reason why I don't know the total records is because
before the split step all duplicates is removed by icetool so a new file is
created.

Any other ideas to split the file fast is welcome.

Thanks
Henk