Quantcast
Channel: IBM Mainframe Computers Forums
Viewing all articles
Browse latest Browse all 9405

DFSORT/ICETOOL :: RE: Finding repetead surnames in differents colmuns

$
0
0
Author: Bill Woodger
Subject: Reply to: Finding repetead surnames in differents colmuns
Posted: Wed Jun 08, 2016 1:33 am (GMT 5.5)

Great fun, then.

Since you have to SORT the data, into two sequences, extend the records to include a "count" field (at the beginning for variable-length records, at the end for fixed-length records) which is large enough for the maximum possible people dealing with the same office. Make it a factor of 10 larger, just in case there's a bank merger :-)

SUM on the count.

For the JOIN use UNPAIRED,F1,ONLY.

In the Maintask of the JOINKEYS, use INCLUDE= for the count being one, and have a BUILD on INREC to drop off the count you added earlier.

If you then need some other order than first-surname, you can SORT in the Maintask as well.


Viewing all articles
Browse latest Browse all 9405

Trending Articles