I have a data set that I run every month with data from the 1st through the 30/31st, but I would like to delete observations that come after the 15th of that month.
Can someone help me create an if statement that will delete any observations that come after the 15th of every month?
without sample, I am guessing
if day(date)>15 then delete;
yes that's correct
thank you so much for your help!
You are welcome. Thank you for your questions and participation on the community
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.
Find more tutorials on the SAS Users YouTube channel.