DATA A;
SET S.payrecordinfo;
YY=DATEPART(AddTime);
FORMAT YY MMDDYY10.;
RUN;
DATA A1;
SET A;
WHERE YY>INPUT('05/06/2017',MMDDYY10.);
RUN;
DATA A;
SET S.payrecordinfo;
YY=DATEPART(AddTime);
FORMAT YY MMDDYY10.;
RUN;
DATA A1;
SET A;
WHERE YY>INPUT('05/06/2017',MMDDYY10.);
RUN;