retrieving observations based on a date variable

Accepted Solution Solved
Reply
Contributor
Posts: 60
Accepted Solution

retrieving observations based on a date variable

It's kind of basic, but can't remember this:

this is my variable

date_  with a format mmddyy10.

data test;

set one;

where date_  gt '02/03/2012'd;

run;

What's wrong with this?


Accepted Solutions
Solution
‎08-03-2012 03:40 PM
PROC Star
Posts: 7,492

Re: retrieving observations based on a date variable

Posted in reply to sasuser1000

where date_  gt '0MAR2012'd;

View solution in original post


All Replies
Solution
‎08-03-2012 03:40 PM
PROC Star
Posts: 7,492

Re: retrieving observations based on a date variable

Posted in reply to sasuser1000

where date_  gt '0MAR2012'd;

Contributor
Posts: 60

Re: retrieving observations based on a date variable

Posted in reply to sasuser1000

Thanks!

🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 149 views
  • 0 likes
  • 2 in conversation