@Velidi sorry, no data or attachments came through. You cannot attach anything via email.
Ideally, you can provide it as a data step following the instructions here:
If your WHERE condition is part of a SQL query, it could be as simple as
...
Where
CPT_4_Procedure_Code in (‘A3789’)
group by intnx("month", date, 0)
having sum(Line_item_units) > 4;
@Reeza that code handles the simplest case where the data is clean and the monthly intervals correspond to calendar months.
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.
SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.
Find more tutorials on the SAS Users YouTube channel.