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

DFSORT/ICETOOL :: RE: SORTJOIN - Copy Matched and Unmatched to the same File

$
0
0
Author: Steve Ironmonger
Posted: Tue Jan 17, 2017 7:58 pm (GMT 5.5)

Hi Arun,

there are no duplicate keys on 1,16 in either input files.

Basically, I have a base file and I want to merge other data where the account number matches.


Code:
dsn=MINED.DATA.BASE
acc-num          typ1 typ2 typ3 typ4
0123451234567812,   0,   0,   0,   0
2345672345678923,   0,   0,   0,   0

With

dsn=ORDER.TOTALS.TYPE1
0123451234567812,1234

to create

MINED.DATA.BASE.UPDATE1
0123451234567812,1234,   0,   0,   0
2345672345678923,   0,   0,   0,   0

then merge MINED.DATA.BASE.UPDATE1 with

dsn=ORDER.TOTALS.TYPE2
0123451234567812,4321
2345672345678923,5432

to create

dsn=MINED.DATA.BASE.UPDATE2
0123451234567812,1234,4321,   0,   0
2345672345678923,   0,5432,   0,   0


My issue is that after the first merge, the second record is not copied into MINED.DATA.BASE.UPDATE1 as it wasn't matched on the first itteration.

cheers

Steve


Viewing all articles
Browse latest Browse all 8500

Trending Articles