Asked • 04/22/19

Is it possible to loop over SAS datasets?

I have 60 sas datasets that contain data on consumers individual characteristics such as `id, gender, age, amountSpent, ....` Each dataset shows data only for one time period (data1 is Jan, data2 is Feb...). I cannot merge them because of the size and some other issues. How can I write a multiple loop to go through each of the datasets, do some manipulations and save the estimated values to a temporary file. SAS does not have a `for` loop. How can I use `do`?

1 Expert Answer

By:

Rick A. answered • 04/22/19

Tutor
5 (33)

Experienced SAS Professional

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.