..20101123
....20011113
.*..20501231
.*..20501231
..00737..20011113
..00738..20011113
.æ........@
which I run through DFSORT with parameters
OPTION COPY
OUTREC IFTHEN=(WHEN=INIT,
BUILD=(1,2,PD,M11)),
IFTHEN=(WHEN=(1,2,PD,EQ,0),
BUILD=(4:3,10)),
IFTHEN=(WHEN=(1,2,PD,EQ,10),
BUILD=(4:3,2,PD,M11,5,8)),
IFTHEN=(WHEN=(1,2,PD,EQ,15),
BUILD=(4:3,2,PD,M11,5,8)),
IFTHEN=(WHEN=(1,2,PD,EQ,20),
BUILD=(4:3,5,8,2,PD,M11,10,8)),
IFTHEN=(WHEN=(1,2,PD,EQ,30),
BUILD=(4:3,2,PD,M11,5,10)),
IFTHEN=(WHEN=(1,2,PD,EQ,99),
BUILD=(4:3,9,PD,M11))
OUTREC IFTHEN=(WHEN=INIT,
BUILD=(1,2,PD,M11)),
IFTHEN=(WHEN=(1,2,PD,EQ,0),
BUILD=(4:3,10)),
IFTHEN=(WHEN=(1,2,PD,EQ,10),
BUILD=(4:3,2,PD,M11,5,8)),
IFTHEN=(WHEN=(1,2,PD,EQ,15),
BUILD=(4:3,2,PD,M11,5,8)),
IFTHEN=(WHEN=(1,2,PD,EQ,20),
BUILD=(4:3,5,8,2,PD,M11,10,8)),
IFTHEN=(WHEN=(1,2,PD,EQ,30),
BUILD=(4:3,2,PD,M11,5,10)),
IFTHEN=(WHEN=(1,2,PD,EQ,99),
BUILD=(4:3,9,PD,M11))
and get the following output
000 .
010 .
015 .
015 .
020 .
020 .
099 .
which is not the output wanted,
but when I change the sort parameters to the following (which to my mind is the same, but obviously isn't)
OPTION COPY
OUTREC IFTHEN=(WHEN=(1,2,PD,EQ,0),
BUILD=(1,2,PD,M11,3,10)),
IFTHEN=(WHEN=(1,2,PD,EQ,10),
BUILD=(1,2,PD,M11,3,2,PD,M11,5,8)),
IFTHEN=(WHEN=(1,2,PD,EQ,15),
BUILD=(1,2,PD,M11,3,2,PD,M11,5,8)),
IFTHEN=(WHEN=(1,2,PD,EQ,20),
BUILD=(1,2,PD,M11,3,5,8,2,PD,M11,10,8)),
IFTHEN=(WHEN=(1,2,PD,EQ,30),
BUILD=(1,2,PD,M11,3,2,PD,M11,5,10)),
IFTHEN=(WHEN=(1,2,PD,EQ,99),
BUILD=(1,2,PD,M11,3,9,PD,M11))
OUTREC IFTHEN=(WHEN=(1,2,PD,EQ,0),
BUILD=(1,2,PD,M11,3,10)),
IFTHEN=(WHEN=(1,2,PD,EQ,10),
BUILD=(1,2,PD,M11,3,2,PD,M11,5,8)),
IFTHEN=(WHEN=(1,2,PD,EQ,15),
BUILD=(1,2,PD,M11,3,2,PD,M11,5,8)),
IFTHEN=(WHEN=(1,2,PD,EQ,20),
BUILD=(1,2,PD,M11,3,5,8,2,PD,M11,10,8)),
IFTHEN=(WHEN=(1,2,PD,EQ,30),
BUILD=(1,2,PD,M11,3,2,PD,M11,5,10)),
IFTHEN=(WHEN=(1,2,PD,EQ,99),
BUILD=(1,2,PD,M11,3,9,PD,M11))
I get the desired output of
00020101123
01000220011113
01500120501231
01500220501231
0200073700120011113
0200073800120011113
09900000000000000007
Question: why the differences, does the IFTHEN=(WHEN=INIT, change the data so that the rest of the IFTHEN commands don't recognise the input, if so can I get around this?