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

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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