BookmarkSubscribeRSS Feed
PaigeMiller
Diamond | Level 26

In the past, I have created spreadsheets as .xml files, and then distributed them to appropriate individuals.

Now, I have a need to read data from an archive of these .xml files.

Does anyone have an example of SAS code to read spreadsheets from .xml files?

--
Paige Miller
1 REPLY 1
data_null__
Jade | Level 19

Maybe you can get somewhere with this but I don't know much about details.

Start with this XML map http://support.sas.com/kb/45/addl/fusion_45192_1_excelxp.map

You will need a libname to point to the XML with with XMLMAP option pointing to the file in the

libname MYXML xml "path-to-myxmlfile.xml" xmlmap="path-excelxp.map";

The try proc datasets or contents to see names of the objects in the library and work your way from there.

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
  • 1 reply
  • 712 views
  • 0 likes
  • 2 in conversation