Hi
I need to export multiples tables SAS to a single xml archive.
I'm looking for something like this:
<SXLEMAP name="AUTO_GEN" version="2.1">
<OUTPUT>
<TABLEREF name="table1"/>
<TABLEREF name="table2"/>
</OUTPUT>
<TABLE description="table1" name="table1">
....
</TABLE>
<TABLE description="table2" name="table1">
....
</TABLE>
But, it doens't work.
Someone can help me?
According to the doc
Export an XML document from a SAS data set by using the XMLMap that was created to import the XML document.
Restriction: | The engine supports exporting from one SAS data set only. |
So using a XMLMap only one table can be written as an XML
However you can use the DATA Step with its BY group processing capabilites to write out the desired XML structure.
Bruno
Thank you for your time.
Was useful know that xmlmap has no suport for export multiple sas datasets.
I wrote a set of %macros to build my xml file.
Thank you Bruno_SAS again.
This seems so short sided. A XML document in general should be expected to have more complexity than a flat file.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.