Hi,
I want to insert start and end dates if there is any gap between end date from previous row to start date in the next row.
data WORK.IND; infile datalines dsd truncover; input START:DATE9. END:DATE9. UID:$200. ED:32.; datalines4; 30MAR2016,31MAR2016,S110,5 01APR2016,02APR2016,S110,10 03APR2016,04APR2016,S110,15 05APR2016,17APR2016,S110,20 18APR2016,18APR2016,S110,0 25APR2016,25APR2016,S110,0 18MAY2016,18MAY2016,S110,0 23MAY2016,24MAY2016,S110,0 ;;;;
need then dates to be split like something below
30-mar-16
31-mar-16
5
S110
01-apr-16
02-apr-16
10
S110
03-apr-16
04-apr-16
15
S110
05-apr-16
17-apr-16
20
S110
18-apr-16
18-apr-16
0
S110
19-apr-16
24-apr-16
20
S110
25-apr-16
25-apr-16
0
S110
26-apr-16
17-apr-16
20
S110
18-may-2016
18-may-2016
0
S110
19-may-2016
22-may-2016
20
S110
23MAY2016
24MAY2016
0
S110
... View more