Hi,
I need a dataset from
07/29/2022 to 08/31/2022 in SAS.
thanks in advance.
Can you provide more details?
Assuming these are numeric date variables
data want;
set have;
if '20JUL2022'd <= date <= '31AUG2022'd;
run;
Please provide data as working SAS data step code from now on. You can follow these instructions or type the working SAS data step code yourself. Doing this avoids us having to make assumptions or guesses about your data (which might be incorrect), which makes it much more likely that people can provide correct answers; this helps you and helps us.
@Smitha9 wrote:
Hi,
I need a dataset from
07/29/2022 to 08/31/2022 in SAS.
The answer to this question is
data want;
do date = '29jul2022'd to '31aug2022'd;
output;
end;
format date mmddyy10.;
run;
But we may have a Maxim 42 issue here.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
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.