Author: Bill Woodger
Subject: Reply to: Joinkeys with duplicated keys
Posted: Tue Sep 27, 2016 1:05 am (GMT 5.5)
I'm probably going to take a knife to this topic...
Unless you are on a very old SyncSORT, a solution from 2009 is not appropriate.
Use JNF1CNTL and JNF2CNTL to append/prepend (fixed-length records/variable-length records) sequence numbers, then include those as minor keys for your JOINKEYS statements.
If this doesn't work, post, in full, what you have tried, including the full output (all three tasks) from the spool, with representative sample data, the output you obtain, and the output you desire.
Subject: Reply to: Joinkeys with duplicated keys
Posted: Tue Sep 27, 2016 1:05 am (GMT 5.5)
I'm probably going to take a knife to this topic...
Unless you are on a very old SyncSORT, a solution from 2009 is not appropriate.
Use JNF1CNTL and JNF2CNTL to append/prepend (fixed-length records/variable-length records) sequence numbers, then include those as minor keys for your JOINKEYS statements.
If this doesn't work, post, in full, what you have tried, including the full output (all three tasks) from the spool, with representative sample data, the output you obtain, and the output you desire.