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;
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Registration is open
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss. Register now and lock in 2025 pricing—just $495!