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

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