BookmarkSubscribeRSS Feed
deleted_user
Not applicable
All,

I am rookie SAS EG user and cannot figure out how to set a query filter for all rows containing today's date. The field data is datetime, any suggestions would be very appreciated.

MC
2 REPLIES 2
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
The sample below has some discussion regarding variable types - you will need to use DATEPART() and either the TODAY() function or in some instances the constant "&SYSDATE9"D may be preferred.

Scott Barry
SBBWorks, Inc.

Sample 35315: Converting Variable Types in SAS® Enterprise Guide
http://support.sas.com/kb/35/315.html
deleted_user
Not applicable
Many thanks DATEPART() worked like a charm. I was able to create an indicator based on that logic. Your assistance is much appreciated.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 5522 views
  • 1 like
  • 2 in conversation