Checking for a date > 05/01/2013 in SAS when date in format DATETIME22.3

How do I check a date in SAS in a Data Step when the date is in the format DATETIME22.3 for a date >= 05/01/2013?

The variable is called DateA
moriniaAdvanced Analytics AnalystAsked:
Who is Participating?
 
theartfuldazzlerConnect With a Mentor Commented:
Hi

Use DATEPART function:

DATA Test;
 set Test;
   WHERE DATEPART(DATEA) >= '01MAY2013"D;
RUN;
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.