Here is my requirement:
I have two input files
input 1: length 80
input 2: length 268
I need to compare the (1,8,ch) of both the files. The first 8 characters in both the file are the keys (file 2 has duplicates allowed). For those keys available in file 1 I need to find a match in file 2. If match (duplicates should be included) is found I need to write into 3rd file.
Regarding duplicates, there will be duplicates only in file 2. I "do not" want to ignore the duplicates, because each line of duplicate is worth important data.
ICETOOL has been part of DFSORT since 1991 and is fully documented and supported. The ICETOOL operators add functions to DFSORT that can't be performed with just the DFSORT control statements. The ICETOOL operators have their own syntax but use DFSORT control statements as well. So when you ask for "similar syntax for SORT", you're asking a meaningless question. The solution here is to use ICETOOL operators, not just DFSORT control statements.