pardon me if I'm only adding confusion. I imagined you were comparing data values stored as standard SAS datetime values. There is a datetime constant syntax. Some posters suggest extracting the datepart before comparing a datetime value with a constant date. From your reply I presume your objective is to compare values as text, so my suggestion is inappropriate.
... View more