Hello, I am new to SAS and learning basics at the moment.
I want to do insert values in my table for a particular date frame - say, a week. How should I write this in proc sql using a do loop so I don't have to write 7 similar queries for each date? Thank you!
There is no iteration construct in SQL syntax. To insert data for a week you can say something like:
insert into mainTable
select ...
from otherTable
where date between '01jan2018'd and '07jan2018'd;
PG
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Registration is open
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!