Have created two date Macros to take out a subset of a huge dataset. Below is the code data Start rest ; set Start3; if start_date2 GE &fildt1. and start_date2 LE &fildt2. then output start; else output rest; run; The date macros are producing proper dates but the If condition is throwing error The error I am getting is ERROR 22-322: Syntax error, expecting one of the following: !, !!, &, *, **, +, -, /, <, <=, <>, =, >, ><, >=, AND, EQ, GE, GT, IN, LE, LT, MAX, MIN, NE, NG, NL, NOTIN, OR, ^=, |, ||, ~=. ERROR 388-185: Expecting an arithmetic operator. ERROR 76-322: Syntax error, statement will be ignored. What am I doing wrong here?
... View more