BookmarkSubscribeRSS Feed
jflo36
Calcite | Level 5

Hi everyone, I have 9 different reports in excel file format. I am trying to import all these reports into SAS and create one summary report for them. 6 of these reports are from the same folder and the rest are from separate folders, but they all have the same path. I am new to SAS. 

 

Thanks for your help!

2 REPLIES 2
PaigeMiller
Diamond | Level 26

This may be overkill, but you can use the %FOR macro for this purpose. The last example in this paper does the importing.

http://www.sascommunity.org/wiki/Streamlining_Data-Driven_SAS_With_The_%25FOR_Macro#Import_all_sprea...

 

Since you don't define what you mean by "summary report", I have no suggestions there.

--
Paige Miller
ballardw
Super User

If all of those 9 reports came from the same source data you might consider bringing the raw data into SAS and then generating the reports and the summary from the same data.

 

We really would need to know what the individual rules are to discuss combining them.

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
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.

SAS Training: Just a Click Away

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

Browse our catalog!

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