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

Hello everyone,

I hope you are well.

I know my question might seem basic but I can't seem to figure it out.

I am trying to filter my data based on a date variable

My date variable is formatted using yymmdd10.

I tried

Where 20080102 <=date <= 20101231;

Where '20080102'd <=date <= '20101231'd;

Where "2008-01-02" <=date <= "2010-12-31";

Sorry for taking your time. Thank you very much for your help.

1 ACCEPTED SOLUTION

Accepted Solutions
Tom
Super User Tom
Super User

Date literals in SAS use the DATE format. The format attached the variable does not matter as the format does not modify the stored value.

Where '02JAN2008'd <=date <= '31DEC2010'd;

View solution in original post

2 REPLIES 2
Tom
Super User Tom
Super User

Date literals in SAS use the DATE format. The format attached the variable does not matter as the format does not modify the stored value.

Where '02JAN2008'd <=date <= '31DEC2010'd;

BchBnz
Obsidian | Level 7

Oh I did not know that!

Thank you very much Tom. You are always very helpful.

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!

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.

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