I want to edit an existing SYNCSORT to compare an input date of format 'DD.MM.YYYY', position 95, with a constant date '25.01.2010'. If the input date is greater than the constant date then I want to include the record.
The existing SYNCSORT is as follows:
SORT FIELDS=COPY
OUTFIL FILES=S1,
INCLUDE=((8,2,CH,EQ,C'50',OR,
8,2,CH,EQ,C'60',OR,
8,2,CH,EQ,C'40'),AND,
(1,4,CH,NE,C'P7 ',OR,
1,4,CH,NE,C'U7 '))
OUTFIL FILES=S2,
OMIT=((8,2,CH,EQ,C'50',OR,
8,2,CH,EQ,C'60',OR,
8,2,CH,EQ,C'40'),AND,
(1,4,CH,NE,C'P7 ',OR,
1,4,CH,NE,C'U7 ',OR,
8,1,CH,EQ,C'A'))
END
I have had a look at date formats but only see input formats such as DDMMYY or YYMMDD, etc..
Can you help?
Regards,
Eddie.