So I have been thinking about this issue for a little bit and I am scratching my head at the best way to approach this issue. I have 3 fields, I have Member, Discharge_DT and Service_DT. I am trying to determine which service dates fall between 1 - 7 days between the Discharge_DT and Service_DT also I am trying to determine which service dates fall between 1 - 30 days between the Discharge_DT and Service_DT. I was thinking something along the lines of PROC SQL;
create table work.test as
select distinct
MEMBER,
DISCHARGE_DT,
(SERVICE_DT - DISCHARGE_DT) as days
from work.table
group by 1,2;
quit; But I am not 100% on the syntax and I want to make sure I am grabbing everything based on the Discharge and not omitting anything. Thank you for your help
... View more