Compare Dates in SORT
Posted: Tue Sep 15, 2015 3:23 pm
All,
I have a got a file in which one of the columns will have the dates in the MM/DD/YYYY.
I need to get only those records which are older than today date. I used the following control statements.
but it gives a syntax error. Can someone please help me to correct it.
I have a got a file in which one of the columns will have the dates in the MM/DD/YYYY.
Code: Select all
11/25/2015
10/10/2015
10/12/2015
06/29/2015
09/21/2015
10/30/2015
09/12/2015
08/20/2015
07/16/2015
09/27/2015
04/15/2010
10/14/2015
09/20/2015
Code: Select all
SORT FIELDS=COPY
INCLUDE COND=(1,10,LT,&DATE(MD4/)),FORMAT=ZD
OUTREC FIELDS=(1,30)