Hi all SAS Users,
I have a dataset romania as below
GVKEY IID DATADATE
212834 01W 03JAN2002
212834 01W 04JAN2002
212834 01W 07JAN2002
212834 01W 08JAN2002
212834 01W 09JAN2002
212834 01W 14JAN2002
212834 01W 15JAN2002
What I want is I want to get the observation after 08JAN2002, so, my desired output is
GVKEY IID DATADATE
212834 01W 09JAN2002
212834 01W 14JAN2002
212834 01W 15JAN2002
I tried to code but it does not work properly
DATA SAMPLE3;
SET romania (where=(datadate > 08JAN2002 ));
run;
The log is
35 SET romania (where=(datadate > 08JAN2002 ));
_______
22
76
ERROR: Syntax error while parsing WHERE clause.
ERROR 22-322: Syntax error, expecting one of the following: !, !!, &, *, **, +, -, /, <, <=, <>, =, >, >=, AND, EQ, GE, GT, LE, LT,
NE, OR, ^=, |, ||, ~=.
ERROR 76-322: Syntax error, statement will be ignored.
Could you please help me to sort it out?
Warm regards.
... View more