Your date variable in data is in DATE9. informat. Use dhms function to make both sides of dates into same format. Then your where statement need to be changed as like this and then it should work. Where dhms(Date,0,0,0) >= dhms('01JUL2015'd,0,0,0);
... View more