BookmarkSubscribeRSS Feed
deleted_user
Not applicable
How do I correct the error noted below. Thanks

The sale date variable is formated as below:
informat sale mmddyy10.

101 WHERE (ST = 'WY') AND (sale BETWEEN '07/31/08' AND '06/30/09') ;
ERROR: Where clause operator requires compatible variables.
102 run;
1 REPLY 1
Flip
Fluorite | Level 6
WHERE (ST = 'WY') AND (sale BETWEEN '31/JUL/08'D AND '30/JUN/09'D) ;

You need to convert the dates to SAS dates.

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

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 1259 views
  • 0 likes
  • 2 in conversation