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;
The 2025 SAS Hackathon Kicks Off on June 11!
Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.