BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
sdang
Quartz | Level 8

The column date is in this format:  "30AUG2001:15:59:54.970"

The syntax:

t1.AccountCreated >="01JAN2014:00:00:00.000"d and t1.AccountCreated <="01DEC2014:00:00:00.000"d

is valid but no data appear.  It just gave me a blank screen.  What did I do wrong?

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User

It's valid, but not what you intend, use DT to specify a Datetime constant not D.

Try the following:

t1.AccountCreated >="01JAN2014:00:00:00.000"dt and t1.AccountCreated <="01DEC2014:00:00:00.000"dt

View solution in original post

2 REPLIES 2
Reeza
Super User

It's valid, but not what you intend, use DT to specify a Datetime constant not D.

Try the following:

t1.AccountCreated >="01JAN2014:00:00:00.000"dt and t1.AccountCreated <="01DEC2014:00:00:00.000"dt

sdang
Quartz | Level 8

Thank you. It worked!

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

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
  • 2 replies
  • 1300 views
  • 0 likes
  • 2 in conversation