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

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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