BookmarkSubscribeRSS Feed
Nikos
Fluorite | Level 6

Dear all,

Could you please help me with the following.

I have a directory that has an unknown number of EXCEL workbooks, which in turn they have an unknown number of worksheets.

Finally each one of the worksheets includes certain number of NAMED RANGES (that they are identical across all spreadsheets across all Workbooks).

Is there any way to import them into SAS PC or into SAS EG 4.2?

I would like to thank you in advance

Kind regards

Nikos

2 REPLIES 2
SASKiwi
PROC Star

If you search the SAS Support site you will find a number of SAS notes and sample programs that may meet your requirements. One such example is:

http://ftp.sas.com/techsup/download/base/autoimporterv9csheettrack.sas

This program deals with the multiple sheet per workbook issue. In the same download folder there are other programs that deal with the multiple workbooks per directory problem so you may be able to tie the two together.

art297
Opal | Level 21

And, another paper that describes a macro for accomplishing the task can be found at: http://pharmasug.org/proceedings/2011/CC/PharmaSUG-2011-CC10.pdf

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 1030 views
  • 0 likes
  • 3 in conversation