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?
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.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.
Ready to level-up your skills? Choose your own adventure.