@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.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.