The code Is working but multiple values
dest_id | source | qty | seqnum | ScheduledArrivalDate |
12913 | 88012 | 2 | 1 | 05Mar2019 |
12913 | 88012 | 0 | 3 | 06Mar2019 |
12913 | 88012 | 0 | 3 | 07Mar2019 |
12913 | 88012 | 1 | 2 | 08Mar2019 |
12913 | 88012 | 0 | 3 | 08Mar2019 |
12913 | 88012 | 0 | 3 | 09Mar2019 |
12913 | 88012 | 0 | 3 | 10Mar2019 |
12913 | 88012 | 0 | 3 | 11Mar2019 |
12913 | 88012 | 4 | 3 | 12Mar2019 |
12913 | 88012 | 0 | 5 | 13Mar2019 |
12913 | 88012 | 0 | 5 | 14Mar2019 |
12913 | 88012 | 0 | 5 | 15Mar2019 |
12913 | 88012 | 0 | 5 | 16Mar2019 |
12913 | 88012 | 0 | 5 | 17Mar2019 |
12913 | 88012 | 0 | 5 | 18Mar2019 |
12913 | 88012 | 0 | 5 | 19Mar2019 |
12913 | 88012 | 2 | 4 | 19Mar2019 |
Thank you so much for your reply. The code is working but there are duplicate dates
Please post me 12913 values from your sample, not the results . i'll take a look in the morning when i wake up.
The result for the sample 12913 you posted seem ok in my test against sample
12913 | 88012 | 05MAR2019 | 2 |
12913 | 88012 | 06MAR2019 | 0 |
12913 | 88012 | 07MAR2019 | 0 |
12913 | 88012 | 08MAR2019 | 1 |
12913 | 88012 | 09MAR2019 | 0 |
12913 | 88012 | 10MAR2019 | 0 |
12913 | 88012 | 11MAR2019 | 0 |
12913 | 88012 | 12MAR2019 | 4 |
12913 | 88012 | 13MAR2019 | 0 |
12913 | 88012 | 14MAR2019 | 0 |
12913 | 88012 | 15MAR2019 | 0 |
12913 | 88012 | 16MAR2019 | 0 |
12913 | 88012 | 17MAR2019 | 0 |
12913 | 88012 | 18MAR2019 | 0 |
12913 | 88012 | 19MAR2019 | 2 |
12913 | 88012 | 20MAR2019 | 0 |
12913 | 88012 | 21MAR2019 | 0 |
12913 | 88012 | 22MAR2019 | 5 |
So I am concerned if this is what is in your real. Chill for now.
Good night from Chicago. Will be in touch once I had my morning coffee
This Is working but multiple dates
dest_id | source | qty | seqnum | ScheduledArrivalDate |
12913 | 88012 | 2 | 1 | 05Mar2019 |
12913 | 88012 | 0 | 3 | 06Mar2019 |
12913 | 88012 | 0 | 3 | 07Mar2019 |
12913 | 88012 | 1 | 2 | 08Mar2019 |
12913 | 88012 | 0 | 3 | 08Mar2019 |
12913 | 88012 | 0 | 3 | 09Mar2019 |
12913 | 88012 | 0 | 3 | 10Mar2019 |
12913 | 88012 | 0 | 3 | 11Mar2019 |
12913 | 88012 | 4 | 3 | 12Mar2019 |
12913 | 88012 | 0 | 5 | 13Mar2019 |
12913 | 88012 | 0 | 5 | 14Mar2019 |
12913 | 88012 | 0 | 5 | 15Mar2019 |
12913 | 88012 | 0 | 5 | 16Mar2019 |
12913 | 88012 | 0 | 5 | 17Mar2019 |
12913 | 88012 | 0 | 5 | 18Mar2019 |
12913 | 88012 | 0 | 5 | 19Mar2019 |
12913 | 88012 | 2 | 4 | 19Mar2019 |
Can you please look at 1,2,3? The code does not work for them
dest_id | source | qty | ScheduledArrivalDate | |
1 | 12305 | 88003 | 5 | 08Mar2019 |
2 | 12305 | 88003 | 6 | 15Mar2019 |
3 | 12305 | 88003 | 4 | 22Mar2019 |
4 | 12913 | 88012 | 2 | 05Mar2019 |
5 | 12913 | 88012 | 0 | 06Mar2019 |
6 | 12913 | 88012 | 0 | 07Mar2019 |
7 | 12913 | 88012 | 1 | 08Mar2019 |
8 | 12913 | 88012 | 0 | 08Mar2019 |
9 | 12913 | 88012 | 0 | 09Mar2019 |
10 | 12913 | 88012 | 0 | 10Mar2019 |
11 | 12913 | 88012 | 0 | 11Mar2019 |
12 | 12913 | 88012 | 4 | 12Mar2019 |
13 | 12913 | 88012 | 0 | 13Mar2019 |
14 | 12913 | 88012 | 0 | 14Mar2019 |
15 | 12913 | 88012 | 0 | 15Mar2019 |
16 | 12913 | 88012 | 0 | 16Mar2019 |
17 | 12913 | 88012 | 0 | 17Mar2019 |
18 | 12913 | 88012 | 0 | 18Mar2019 |
19 | 12913 | 88012 | 0 | 19Mar2019 |
20 | 12913 | 88012 | 2 | 19Mar2019 |
21 | 12913 | 88012 | 0 | 20Mar2019 |
22 | 12913 | 88012 | 0 | 21Mar2019 |
23 | 12913 | 88012 | 5 | 22Mar2019 |
24 | 13690 | 88003 | 12 | 06Mar2019 |
25 | 13690 | 88003 | 0 | 07Mar2019 |
26 | 13690 | 88003 | 0 | 08Mar2019 |
27 | 13690 | 88003 | 0 | 09Mar2019 |
28 | 13690 | 88003 | 0 | 10Mar2019 |
29 | 13690 | 88003 | 0 | 11Mar2019 |
30 | 13690 | 88003 | 0 | 12Mar2019 |
31 | 13690 | 88003 | 12 | 13Mar2019 |
32 | 13827 | 88011 | 12 | 08Mar2019 |
33 | 13827 | 88011 | 0 | 09Mar2019 |
34 | 13827 | 88011 | 0 | 10Mar2019 |
35 | 13827 | 88011 | 0 | 11Mar2019 |
36 | 13827 | 88011 | 0 | 12Mar2019 |
37 | 13827 | 88011 | 0 | 13Mar2019 |
38 | 13827 | 88011 | 0 | 14Mar2019 |
39 | 13827 | 88011 | 12 | 15Mar2019 |
40 | 13827 | 88011 | 12 | 22Mar2019 |
41 | 15007 | 88011 | 12 | 08Mar2019 |
42 | 15007 | 88011 | 0 | 09Mar2019 |
43 | 15007 | 88011 | 0 | 10Mar2019 |
44 | 15007 | 88011 | 0 | 11Mar2019 |
45 | 15007 | 88011 | 0 | 12Mar2019 |
46 | 15007 | 88011 | 0 | 13Mar2019 |
47 | 15007 | 88011 | 0 | 14Mar2019 |
48 | 15007 | 88011 | 0 | 15Mar2019 |
49 | 15007 | 88011 | 0 | 16Mar2019 |
50 | 15007 | 88011 | 0 | 17Mar2019 |
51 | 15007 | 88011 | 0 | 18Mar2019 |
52 | 15007 | 88011 | 0 | 19Mar2019 |
53 | 15007 | 88011 | 0 | 20Mar2019 |
54 | 15007 | 88011 | 0 | 21Mar2019 |
55 | 15007 | 88011 | 12 | 22Mar2019 |
56 | 15211 | 88003 | 12 | 09Mar2019 |
57 | 15469 | 88012 | 12 | 12Mar2019 |
58 | 15469 | 88012 | 0 | 13Mar2019 |
59 | 15469 | 88012 | 0 | 14Mar2019 |
60 | 15469 | 88012 | 0 | 15Mar2019 |
61 | 15469 | 88012 | 0 | 16Mar2019 |
62 | 15469 | 88012 | 0 | 17Mar2019 |
63 | 15469 | 88012 | 0 | 18Mar2019 |
64 | 15469 | 88012 | 12 | 19Mar2019 |
65 | 15916 | 88003 | 12 | 15Mar2019 |
66 | 16355 | 88003 | 12 | 07Mar2019 |
67 | 16355 | 88003 | 0 | 08Mar2019 |
68 | 16355 | 88003 | 0 | 09Mar2019 |
69 | 16355 | 88003 | 0 | 10Mar2019 |
70 | 16355 | 88003 | 0 | 11Mar2019 |
71 | 16355 | 88003 | 0 | 12Mar2019 |
72 | 16355 | 88003 | 0 | 13Mar2019 |
73 | 16355 | 88003 | 0 | 14Mar2019 |
74 | 16355 | 88003 | 0 | 15Mar2019 |
75 | 16355 | 88003 | 0 | 16Mar2019 |
76 | 16355 | 88003 | 0 | 17Mar2019 |
77 | 16355 | 88003 | 0 | 18Mar2019 |
78 | 16355 | 88003 | 0 | 19Mar2019 |
79 | 16355 | 88003 | 0 | 20Mar2019 |
80 | 16355 | 88003 | 12 | 21Mar2019 |
Sorry, what do you mean by 1,2,3?
obs no?
qty?
first 1 , 2 and 3 observation
Hi @hcbn Tested again, same code
Please review the below carefully. Do feel free to come back with any number of questions.
/*Creating HAVE Sample with qty=0 fromy your previous post*/
data have have1;
input obsno dest_id source qty ScheduledArrivalDate :date9.;
if qty ne 0 then output have;
output have1;
format ScheduledArrivalDate date9.;
cards;
1 12305 88003 5 08Mar2019
2 12305 88003 6 15Mar2019
3 12305 88003 4 22Mar2019
4 12913 88012 2 05Mar2019
5 12913 88012 0 06Mar2019
6 12913 88012 0 07Mar2019
7 12913 88012 1 08Mar2019
8 12913 88012 0 08Mar2019
9 12913 88012 0 09Mar2019
10 12913 88012 0 10Mar2019
11 12913 88012 0 11Mar2019
12 12913 88012 4 12Mar2019
13 12913 88012 0 13Mar2019
14 12913 88012 0 14Mar2019
15 12913 88012 0 15Mar2019
16 12913 88012 0 16Mar2019
17 12913 88012 0 17Mar2019
18 12913 88012 0 18Mar2019
19 12913 88012 0 19Mar2019
20 12913 88012 2 19Mar2019
21 12913 88012 0 20Mar2019
22 12913 88012 0 21Mar2019
23 12913 88012 5 22Mar2019
24 13690 88003 12 06Mar2019
25 13690 88003 0 07Mar2019
26 13690 88003 0 08Mar2019
27 13690 88003 0 09Mar2019
28 13690 88003 0 10Mar2019
29 13690 88003 0 11Mar2019
30 13690 88003 0 12Mar2019
31 13690 88003 12 13Mar2019
32 13827 88011 12 08Mar2019
33 13827 88011 0 09Mar2019
34 13827 88011 0 10Mar2019
35 13827 88011 0 11Mar2019
36 13827 88011 0 12Mar2019
37 13827 88011 0 13Mar2019
38 13827 88011 0 14Mar2019
39 13827 88011 12 15Mar2019
40 13827 88011 12 22Mar2019
41 15007 88011 12 08Mar2019
42 15007 88011 0 09Mar2019
43 15007 88011 0 10Mar2019
44 15007 88011 0 11Mar2019
45 15007 88011 0 12Mar2019
46 15007 88011 0 13Mar2019
47 15007 88011 0 14Mar2019
48 15007 88011 0 15Mar2019
49 15007 88011 0 16Mar2019
50 15007 88011 0 17Mar2019
51 15007 88011 0 18Mar2019
52 15007 88011 0 19Mar2019
53 15007 88011 0 20Mar2019
54 15007 88011 0 21Mar2019
55 15007 88011 12 22Mar2019
56 15211 88003 12 09Mar2019
57 15469 88012 12 12Mar2019
58 15469 88012 0 13Mar2019
59 15469 88012 0 14Mar2019
60 15469 88012 0 15Mar2019
61 15469 88012 0 16Mar2019
62 15469 88012 0 17Mar2019
63 15469 88012 0 18Mar2019
64 15469 88012 12 19Mar2019
65 15916 88003 12 15Mar2019
66 16355 88003 12 07Mar2019
67 16355 88003 0 08Mar2019
68 16355 88003 0 09Mar2019
69 16355 88003 0 10Mar2019
70 16355 88003 0 11Mar2019
71 16355 88003 0 12Mar2019
72 16355 88003 0 13Mar2019
73 16355 88003 0 14Mar2019
74 16355 88003 0 15Mar2019
75 16355 88003 0 16Mar2019
76 16355 88003 0 17Mar2019
77 16355 88003 0 18Mar2019
78 16355 88003 0 19Mar2019
79 16355 88003 0 20Mar2019
80 16355 88003 12 21Mar2019
;
data want;
set have;
by dest_id;
retain t;
if first.dest_id then do; t=ScheduledArrivalDate;output;end;
else do;
temp=qty;
temp2=ScheduledArrivalDate;
do ScheduledArrivalDate=t+1 to ScheduledArrivalDate-1;
qty=0;
output;
end;
qty=temp;
ScheduledArrivalDate=temp2;
output;
t=ScheduledArrivalDate;
end;
drop t:;
run;
RESULTS:
dest_id | source | qty | ScheduledArrivalDate |
---|---|---|---|
12305 | 88003 | 5 | 08MAR2019 |
12305 | 88003 | 0 | 09MAR2019 |
12305 | 88003 | 0 | 10MAR2019 |
12305 | 88003 | 0 | 11MAR2019 |
12305 | 88003 | 0 | 12MAR2019 |
12305 | 88003 | 0 | 13MAR2019 |
12305 | 88003 | 0 | 14MAR2019 |
12305 | 88003 | 6 | 15MAR2019 |
12305 | 88003 | 0 | 16MAR2019 |
12305 | 88003 | 0 | 17MAR2019 |
12305 | 88003 | 0 | 18MAR2019 |
12305 | 88003 | 0 | 19MAR2019 |
12305 | 88003 | 0 | 20MAR2019 |
12305 | 88003 | 0 | 21MAR2019 |
12305 | 88003 | 4 | 22MAR2019 |
12913 | 88012 | 2 | 05MAR2019 |
12913 | 88012 | 0 | 06MAR2019 |
12913 | 88012 | 0 | 07MAR2019 |
12913 | 88012 | 1 | 08MAR2019 |
12913 | 88012 | 0 | 09MAR2019 |
12913 | 88012 | 0 | 10MAR2019 |
12913 | 88012 | 0 | 11MAR2019 |
12913 | 88012 | 4 | 12MAR2019 |
12913 | 88012 | 0 | 13MAR2019 |
12913 | 88012 | 0 | 14MAR2019 |
12913 | 88012 | 0 | 15MAR2019 |
12913 | 88012 | 0 | 16MAR2019 |
12913 | 88012 | 0 | 17MAR2019 |
12913 | 88012 | 0 | 18MAR2019 |
12913 | 88012 | 2 | 19MAR2019 |
12913 | 88012 | 0 | 20MAR2019 |
12913 | 88012 | 0 | 21MAR2019 |
12913 | 88012 | 5 | 22MAR2019 |
13690 | 88003 | 12 | 06MAR2019 |
13690 | 88003 | 0 | 07MAR2019 |
13690 | 88003 | 0 | 08MAR2019 |
13690 | 88003 | 0 | 09MAR2019 |
13690 | 88003 | 0 | 10MAR2019 |
13690 | 88003 | 0 | 11MAR2019 |
13690 | 88003 | 0 | 12MAR2019 |
13690 | 88003 | 12 | 13MAR2019 |
13827 | 88011 | 12 | 08MAR2019 |
13827 | 88011 | 0 | 09MAR2019 |
13827 | 88011 | 0 | 10MAR2019 |
13827 | 88011 | 0 | 11MAR2019 |
13827 | 88011 | 0 | 12MAR2019 |
13827 | 88011 | 0 | 13MAR2019 |
13827 | 88011 | 0 | 14MAR2019 |
13827 | 88011 | 12 | 15MAR2019 |
13827 | 88011 | 0 | 16MAR2019 |
13827 | 88011 | 0 | 17MAR2019 |
13827 | 88011 | 0 | 18MAR2019 |
13827 | 88011 | 0 | 19MAR2019 |
13827 | 88011 | 0 | 20MAR2019 |
13827 | 88011 | 0 | 21MAR2019 |
13827 | 88011 | 12 | 22MAR2019 |
15007 | 88011 | 12 | 08MAR2019 |
15007 | 88011 | 0 | 09MAR2019 |
15007 | 88011 | 0 | 10MAR2019 |
15007 | 88011 | 0 | 11MAR2019 |
15007 | 88011 | 0 | 12MAR2019 |
15007 | 88011 | 0 | 13MAR2019 |
15007 | 88011 | 0 | 14MAR2019 |
15007 | 88011 | 0 | 15MAR2019 |
15007 | 88011 | 0 | 16MAR2019 |
15007 | 88011 | 0 | 17MAR2019 |
15007 | 88011 | 0 | 18MAR2019 |
15007 | 88011 | 0 | 19MAR2019 |
15007 | 88011 | 0 | 20MAR2019 |
15007 | 88011 | 0 | 21MAR2019 |
15007 | 88011 | 12 | 22MAR2019 |
15211 | 88003 | 12 | 09MAR2019 |
15469 | 88012 | 12 | 12MAR2019 |
15469 | 88012 | 0 | 13MAR2019 |
15469 | 88012 | 0 | 14MAR2019 |
15469 | 88012 | 0 | 15MAR2019 |
15469 | 88012 | 0 | 16MAR2019 |
15469 | 88012 | 0 | 17MAR2019 |
15469 | 88012 | 0 | 18MAR2019 |
15469 | 88012 | 12 | 19MAR2019 |
15916 | 88003 | 12 | 15MAR2019 |
16355 | 88003 | 12 | 07MAR2019 |
16355 | 88003 | 0 | 08MAR2019 |
16355 | 88003 | 0 | 09MAR2019 |
16355 | 88003 | 0 | 10MAR2019 |
16355 | 88003 | 0 | 11MAR2019 |
16355 | 88003 | 0 | 12MAR2019 |
16355 | 88003 | 0 | 13MAR2019 |
16355 | 88003 | 0 | 14MAR2019 |
16355 | 88003 | 0 | 15MAR2019 |
16355 | 88003 | 0 | 16MAR2019 |
16355 | 88003 | 0 | 17MAR2019 |
16355 | 88003 | 0 | 18MAR2019 |
16355 | 88003 | 0 | 19MAR2019 |
16355 | 88003 | 0 | 20MAR2019 |
16355 | 88003 | 12 | 21MAR2019 |
I am really sorry that I took your time so much but this code also does not work.
1,2 and 3 obs are not working with code
dest_id | source | qty | ScheduledArrivalDate |
12305 | 88003 | 4 | 22Mar2019 |
12305 | 88003 | 6 | 15Mar2019 |
12305 | 88003 | 5 | 08Mar2019 |
12913 | 88012 | 1 | 08Mar2019 |
12913 | 88012 | 2 | 05Mar2019 |
12913 | 88012 | 0 | 06Mar2019 |
12913 | 88012 | 0 | 07Mar2019 |
12913 | 88012 | 0 | 08Mar2019 |
12913 | 88012 | 0 | 09Mar2019 |
12913 | 88012 | 0 | 10Mar2019 |
12913 | 88012 | 0 | 11Mar2019 |
@hcbn Don't worry. We have to work interactively. Are you sure the samples you post are alike what you have?
In the below one, your ScheduledArrivalDate is not sorted or in other words it is properly ordered in ascending or descending order.
First, you need to clarify
1. is it okay to
sort by dest_id ScheduledArrivalDate;
If yes, the order would be like all ScheduledArrivalDate sorted in ascending order within each dest_id
So
proc sort data=have out=sorted_have;
by dest_id ScheduledArrivalDate;
run;
2. Once sort is done, the WANT datastep using the sorted_have to get the desired output will work.
Take your time. Please do clarify the above.
Post a comprehensive sample of your HAVE and the expected OUTPUT.
I will have a coffee in the meantime
dest_id | source | qty | ScheduledArrivalDate |
12305 | 88003 | 4 | 22Mar2019 |
12305 | 88003 | 6 | 15Mar2019 |
12305 | 88003 | 5 | 08Mar2019 |
12913 | 88012 | 1 | 08Mar2019 |
12913 | 88012 | 2 | 05Mar2019 |
12913 | 88012 | 0 | 06Mar2019 |
12913 | 88012 | 0 | 07Mar2019 |
12913 | 88012 | 0 | 08Mar2019 |
12913 | 88012 | 0 | 09Mar2019 |
12913 | 88012 | 0 | 10Mar2019 |
12913 | 88012 | 0 | 11Mar2019 |
I do not know how to thank you. It is working excellent. Thank you so much. The code is working. I did your advice.
Proc sort data=work.daily_pln_arriv out= work.daily_pln_arriv;
by dest_id ScheduledArrivalDate;
run;
data work.xxxx;
set work.daily_pln_arriv;/*have*/
by dest_id;
retain t;
if first.dest_id then do; t=ScheduledArrivalDate;output;end;
else do;
format t temp2 ScheduledArrivalDate date9.;
temp=qty;
temp2=ScheduledArrivalDate;
do ScheduledArrivalDate=t+1 to ScheduledArrivalDate-1;
qty=0;
output;
end;
qty=temp;
ScheduledArrivalDate=temp2;
output;
t=ScheduledArrivalDate;
end;
drop t:;
run;
I appreciate your help. This is the first time for me to here and immediately my problem was resolved.
Can I ask a different question? Can I add date range into the data like this below?
Date range is between 03/03/2019 and 03/23/2019.
Input | |||
dest_id | source | ScheduledArrivalDate | qty |
12305 | 88003 | 08Mar2019 | 5 |
12305 | 88003 | 09Mar2019 | 0 |
12305 | 88003 | 10Mar2019 | 0 |
12305 | 88003 | 11Mar2019 | 0 |
12305 | 88003 | 12Mar2019 | 0 |
12305 | 88003 | 13Mar2019 | 0 |
12305 | 88003 | 14Mar2019 | 0 |
12305 | 88003 | 15Mar2019 | 6 |
12305 | 88003 | 16Mar2019 | 0 |
12305 | 88003 | 17Mar2019 | 0 |
12305 | 88003 | 18Mar2019 | 0 |
12305 | 88003 | 19Mar2019 | 0 |
12305 | 88003 | 20Mar2019 | 0 |
12305 | 88003 | 21Mar2019 | 0 |
12305 | 88003 | 22Mar2019 | 4 |
12913 | 88012 | 05Mar2019 | 2 |
12913 | 88012 | 06Mar2019 | 0 |
12913 | 88012 | 07Mar2019 | 0 |
12913 | 88012 | 08Mar2019 | 1 |
12913 | 88012 | 09Mar2019 | 0 |
12913 | 88012 | 10Mar2019 | 0 |
12913 | 88012 | 11Mar2019 | 0 |
12913 | 88012 | 12Mar2019 | 4 |
12913 | 88012 | 13Mar2019 | 0 |
12913 | 88012 | 14Mar2019 | 0 |
12913 | 88012 | 15Mar2019 | 0 |
12913 | 88012 | 16Mar2019 | 0 |
12913 | 88012 | 17Mar2019 | 0 |
12913 | 88012 | 18Mar2019 | 0 |
12913 | 88012 | 19Mar2019 | 2 |
12913 | 88012 | 20Mar2019 | 0 |
12913 | 88012 | 21Mar2019 | 0 |
12913 | 88012 | 22Mar2019 | 5 |
DESIRED OUTPUT | |||
dest_id | source | ScheduledArrivalDate | qty |
12305 | 87996 | 01Mar2019 | 0 |
12305 | 87997 | 02Mar2019 | 0 |
12305 | 87998 | 03Mar2019 | 0 |
12305 | 87999 | 04Mar2019 | 0 |
12305 | 88000 | 05Mar2019 | 0 |
12305 | 88001 | 06Mar2019 | 0 |
12305 | 88002 | 07Mar2019 | 0 |
12305 | 88003 | 08Mar2019 | 5 |
12305 | 88003 | 09Mar2019 | 0 |
12305 | 88003 | 10Mar2019 | 0 |
12305 | 88003 | 11Mar2019 | 0 |
12305 | 88003 | 12Mar2019 | 0 |
12305 | 88003 | 13Mar2019 | 0 |
12305 | 88003 | 14Mar2019 | 0 |
12305 | 88003 | 15Mar2019 | 6 |
12305 | 88003 | 16Mar2019 | 0 |
12305 | 88003 | 17Mar2019 | 0 |
12305 | 88003 | 18Mar2019 | 0 |
12305 | 88003 | 19Mar2019 | 0 |
12305 | 88003 | 20Mar2019 | 0 |
12305 | 88003 | 21Mar2019 | 0 |
12305 | 88003 | 22Mar2019 | 4 |
12305 | 88003 | 23Mar2019 | 0 |
12913 | 88010 | 03Mar2019 | 0 |
12913 | 88011 | 04Mar2019 | 0 |
12913 | 88012 | 05Mar2019 | 2 |
12913 | 88012 | 06Mar2019 | 0 |
12913 | 88012 | 07Mar2019 | 0 |
12913 | 88012 | 08Mar2019 | 1 |
12913 | 88012 | 09Mar2019 | 0 |
12913 | 88012 | 10Mar2019 | 0 |
12913 | 88012 | 11Mar2019 | 0 |
12913 | 88012 | 12Mar2019 | 4 |
12913 | 88012 | 13Mar2019 | 0 |
12913 | 88012 | 14Mar2019 | 0 |
12913 | 88012 | 15Mar2019 | 0 |
12913 | 88012 | 16Mar2019 | 0 |
12913 | 88012 | 17Mar2019 | 0 |
12913 | 88012 | 18Mar2019 | 0 |
12913 | 88012 | 19Mar2019 | 2 |
12913 | 88012 | 20Mar2019 | 0 |
12913 | 88012 | 21Mar2019 | 0 |
12913 | 88012 | 22Mar2019 | 5 |
12913 | 88012 | 23Mar2019 | 0 |
Can I add date range into the data like this below?
Date range is between 03/03/2019 and 03/23/2019.
Hi @hcbn the question seems little incomplete.
1. Do you want to add a filter i.e do you wanna subset or something?
2. If yes, for All Id's?
3. What's the objective? Can i add is something not clear to me
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.
Find more tutorials on the SAS Users YouTube channel.