Hi saspert, Please look at the below code and it will serve your purpose. data a; input date1 : mmddyy10. date2 : mmddyy10.; format date1 date2 date9.; datalines; 07/31/2011 07/01/2011 12/31/2011 12/01/2011 ; data b; set a; if date1='31dec2011'd then output; // adding a 'd' is possible only with date9. date format and not with mmddyy date format. run; Note - In the above example i am reading the nonstandard date value , sas stores date values in numeric format, then i am using format statement to convert the date value into a comparable format. Let me know in case of any queries. Thanks, Ankit
... View more