What is the date format... Here is the sample code for you, It will return RC4 when it is mismatch, accordingly you need to use COND= in your JCL Step.
assuming your date format is YYYY-MM-DD and its starts from position 2.
//S1 EXEC PGM=ICETOOL
//TOOLMSG DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//IN DD *
H2014-08-07
D RECORD 01
D RECORD 02
D RECORD 03
//TOOLIN DD *
COUNT FROM(IN) RC4 EMPTY USING(CTL1)
//CTL1CNTL DD *
OPTION STOPAFT=1
INCLUDE COND=(2,10,CH,EQ,DATE1(-)-1)
/*
Hope this helps..
Regards
Magesh