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
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.