I am trying to do a match using SYNCSORT and only in case if 22,2,ch,eq,c'9A' we need to overlay with records from other portion.
Also we need both matched and unmatced records in seperate file.
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
Dipsy,
You have messed up with the syntax here. IFTHEN is supported even by older verisons of Syncsort and you have the latest version!
Can you explain what are you trying to do here, especially in the case of a match. Also I just noticed your field lengths in the case of a match add only upto 254 and not 255.
We are doing a match on 2 files based on the key fields from 1,17. File 2 records only where 22,2,ch,eq,C'1A' should be consnidered.
And also I need unmatched records only from file1 in SORTOF02.
The approach to this is
In case of Matche records,
1. they should be moved to SORTOF01 and
2. when 22,2,ch,eq,C'9A' we need to copy data from file 2 matched record and replace columns 44,10 with 109,10 and 54,8 with 50,8 from file 2 records.