Joined: 20 Oct 2006 Posts: 6970 Location: porcelain throne
how many potential gdg's can you have?
are they always going to be the same name?
have you searched the forum?
do you know anything about computers? ibm mainframes?
what reward do you receive when you can provide your boss with this solution?
have you thought of collecting the information from another source,
such as job output from creator of current gdg generation,
instead of reading the files and counting.
what will you do with this report?
will it add to the companies ROI?
Are you looking for all the "GDG Base" that starts with certain qualifier and get a count of each base with their respective counts?
If you know the names of "GDG Base" in advance and you are just trying to get a total count of records for each gdg version?
If later is true, you may just read GDG base as SORTIN and run count job. That will give read all the GDG versions in the input. Something like below will give you output in flat file but you get the idea... If you are trying to get a list of "GDG base" depending on certain qualifier and you don't how many bases will result from that, you can still do that but you need to provide us with qualifier value and explain the rules in detail.