Dates setup to include mid-night to mid-night so in actuality the "stop" date count is not actually included in the sum.
Because of the above statement, I give a slightly modified output
'03JUL2018'd-'04JUL2018'd = '03JUL2018-04JUL2018'
'05JUL2018'd-'09JUL2018'd = '05JUL2018-09JUL2018';
proc summary data=have;
format day datef.;
output out=_count_ sum=;
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.