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

SYNCSORT :: RE: Joinkeys with duplicated keys

$
0
0
Author: Bill Woodger
Subject: Reply to: Joinkeys with duplicated keys
Posted: Fri Sep 23, 2016 9:40 pm (GMT 5.5)

Thanks, Arun. Well, it wasn't a very good "inspection" then, was it? Now I understand what the TS/OP meant :-)

If the keys are identical on the two files, simplest for me is the join on the sequence numbers. Can verify that the keys are identical if desired.

Each of the three (if I have looked correctly) "333" keys on F1 will match with each of the three "333" keys on F2, giving nine "333" keys on the joined data.

If there is not a one-to-one relationship in the keys, then the easiest is to make the keys unique, by adding a sequence number with RESTART= for the key value field. So, two-part key, 333 001, 333 002, 333 003, and then the join will be one-for-one.


Viewing all articles
Browse latest Browse all 8500

Trending Articles