I am creating a dynamic sort which also needs to remove the duplicates.
OUTFIL REMOVECC,
HEADER1=(' SORT FIELDS=COPY ',/,
' INCLUDE COND=((1,1,BI,NE,1,1,BI),OR,'),
BUILD=(C' (4,4,PD,EQ,',1,7,C',AND,244,1,CH,EQ,C''',8,1,C'''),OR,
',80:X),
TRAILER1=(' (1,1,BI,NE,1,1,BI))',
SUM FIELDS=NONE)
HEADER1=(' SORT FIELDS=COPY ',/,
' INCLUDE COND=((1,1,BI,NE,1,1,BI),OR,'),
BUILD=(C' (4,4,PD,EQ,',1,7,C',AND,244,1,CH,EQ,C''',8,1,C'''),OR,
',80:X),
TRAILER1=(' (1,1,BI,NE,1,1,BI))',
SUM FIELDS=NONE)
However I tried to check without SUM FIELDS=NONE and its working.
Please suggest me where I am doing wrong.
Regards,
Balu