2 weeks ago - last edited 2 weeks ago
I am trying to select the past 30 days of data from the current date/time for multiple groups in SAS DI. This is a streaming data set that has new observations every 10 minutes. Schedule manager updates this SAS table every hour.
My time is of the format: 08June2018:14:40:00.000 and named UTCDateTime
My group is based on a multiple categorical values in the "name" column
I have added a "group_by" on "name" and setup a "having" statement using the TODAY function thinking that it would report the past 30 days, but it only reports all of the timestamps for the past 30th day (which make sense now!).
DATEPART(UTCDateTime) = TODAY()-30
Thanks in advance for your assistance.
Need further help from the community? Please ask a new question.