BookmarkSubscribeRSS Feed
BETO
Fluorite | Level 6
I have these fields in my table.The time_start runs from 01:00 thru 23:00
ID
DATE START
TIME_START

I need to select a time range between 8:00 AM thru 17:00 only how do I exclude the time that falls from this range?
Thanks For Your Assistance
1 REPLY 1
Ksharp
Super User
Hi.
How about :


[pre]
data x;
input time time5.;
format time time5.;
cards;
08:09
10:21
12:00
23:22
;run;
data _x;
set x;
where time between '10:11't and '14:20't;
run;
[/pre]



Ksharp

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 1480 views
  • 0 likes
  • 2 in conversation