See if you can use this as a template.
data permlib.want;
set permlib.have;
if year(Incident_Date) not in (2002 : 2017) or
year(Date_Received) not in (2002 : 2017) or
Incident_Date > Date_Received then Date_Issues = "Need Review";
label Date_Issues = "Date Issues";
format Incident_Date Date_Received date9.;
run;
... View more