I have a SAS data set where one of the columns named ISSUE_DATE
is text type and has date values in the format of 'YYYYMMDD'
. I'm writing a query against the this data set and would like to retrieve all rows where ISSUE_DATE
is <= today -2 . How can i write the query for this.
SELECT * FROM WORK.DATASET WHERE ISSUE_DATE <= today()-2.
I'm new to SAS and don't know much date functions and conversions. Any help is greatly appreciated.
Thanks