data have;
input
ID
Date :mmddyy10.;
format date mmddyy10.;
cards;
1
11/12/18
1
11/20/18
1
11/28/18
3
6/4/18
3
6/20/18
;
data want;
set have;
by id;
DiffDate=dif(date);
if first.id the DiffDate=.;
run;
data have;
input
ID
Date :mmddyy10.;
format date mmddyy10.;
cards;
1
11/12/18
1
11/20/18
1
11/28/18
3
6/4/18
3
6/20/18
;
data want;
set have;
by id;
DiffDate=dif(date);
if first.id the DiffDate=.;
run;
2025 SAS Hackathon: There is still time!
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!