I would like to match above two files and matched records from Input File-2 should go to MATCH and all other from Input File-2 should go to UNMATCH files. I am doing the comparison between keys of columns 1,4 (file-1) and columns 15,4 (file-2).
I tried JOINKEYS with JOIN UNPAIRED and REFORMAT FIELDS=(F2:1,80) but it is populating MATCH file only and UNMATCH file is never created.
Please help.
Thanks. _________________ MF
==
Any training that does not include the emotions, mind and body is incomplete; knowledge fades without feeling.
==
mf_user,
Since you want both matched and unmatched records, you will have to use JOIN UNPAIRED,F2 which gives you UNPAIRED records from F2 as well as PAIRED records (Right outer join). Now, that you also want records to be written to different output files, you would have to use DFSort's 1 byte join indicator('?') to determine which records match and which ones doesn't and route them to different output files accordingly.
'B' - in the join indicator indicates that the key was found in F1 and F2.
'1' - in the join indicator indicates that the key was found in F1, but not in F2.
'2' - in the join indicator indicates that the key was found in F2, but not in F1.
Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
Posted: Fri Sep 17, 2010 10:08 am Post subject:
Then I'd guess you're using Syncsort which doesn't support the ? indicator instead of DFSORT which does. Check your messages (ICE for DFSORT or WER for Syncsort). _________________ Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
MF,
If its not too much of a trouble, could you please post your entire sysout messages? I am asking this because when I ran the job, it ran successfully.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum