Old query Data x ; set y; where Offer_St_dt >= '01OCT2011'd; run; I am trying to replace the above query with New Query %let year1 = %STR(%')%sysfunc(intnx(month,%sysfunc(today()),-12),date9.)%STR(%'); Data x ; set y; where Offer_St_dt >= &year1; run; I am getting error in the above case as ERROR: Syntax error while parsing WHERE clause. ERROR 22-322: Syntax error, expecting one of the following: a name, a quoted string, a numeric constant, a datetime constant, a missing value, (, +, -, :, INPUT, NOT, PUT, ^, ~. ERROR 76-322: Syntax error, statement will be ignored.
... View more