Code: Select all
File Name Record Count
file.name.one 12056
file.name.two 6342
file.name.three 53153
file.name.four 79495
file.anme.five 9395
Code: Select all
File Name Record Count
file.name.one 12056
file.name.two 6342
file.name.three 53153
file.name.four 79495
file.anme.five 9395
yes this is correct, this is what I want to do.nicc wrote:You have a data set the contents of which is a list of data set names and you want to produce a report that consists of each of those data set names and there respective record counts?
Thanks. I am alos not very good with SORT but I think this is how i want to do it. I shall try to get a soluton for it.You can write a program that will read the data set and generate a sort for each data set name to be reported on with a final step that will be another program that will read the sysout from each sort step and extract the record count. You may be able to utilise the COUNT oprator of sort so that your last program ony has to read one line but I am not a "power" sort user so I cannot confirm that off the top of my head.
There are other ways of doing this involving dynamic allocation in COBOL or PL/1 or a Rexx program to call sort against each data set name in your list or, if the volume count of each data set is small, a simple EXECIO * into a stem and look at stemname.0 is simple.
You need to be a member in order to post a reply
Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute