BookmarkSubscribeRSS Feed
milts
Pyrite | Level 9

Hi Experts,

Requirement is that the excel report to be converted into a SAS dataset and then be replicate the report thru WRS then view it in IDP.

I tried to convert the worksheet into a dataset and as expected, it ain't an easy job because of the merged columns.

Hoping for your suggestions on how to convert this report template into a sas dataset correctly.

Thanks!

Milton


crap.bmp
2 REPLIES 2
SASKiwi
PROC Star

If this is just a one time conversion of the worksheet, then I would manually edit the spreadsheet to simplify the column structure.

If this an ongoing process, how about going back to the author to provide the source data in a simpler form?

The difficulty with layouts like this is you might get it working on this version, then next time the author decides to move stuff around and you have to change your program all over again.

Ksharp
Super User

That is not easy. My suggestion is saving XLS file into CSV file, then use data step to get right datasets.

Ksharp

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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
  • 1099 views
  • 0 likes
  • 3 in conversation