The SAS Output Delivery System and reporting techniques

Exporting SAS Data to XML

Reply
N/A
Posts: 0

Exporting SAS Data to XML

I want to export SAS Data to an XML file. Currently I am using SAS 9.1. I am using proc Template to export data to XML.
Can I use a DTD or XMLMap to export SAS Data to an XML file by eliminating a data step or proc Template if we migrate to SAS 9.2?
How do I migrate to SAS 9.2?
I really appreciate if you could provide me the information.
Super Contributor
Posts: 259

Re: Exporting SAS Data to XML

You can use the XML libname engine to access xml-files. The engine is documented in http://support.sas.com/rnd/base/xmlengine/sxle913/index.html
N/A
Posts: 0

Re: Exporting SAS Data to XML

I am able to import the data from XML to SAS by using XMLMap.
Now I am trying to export the SAS Data to XML by using DTD or XMLMap.
It seems that I can't use DTD/XMLMap in SAS9.1 to export data to XML. With SAS9.1 I have to use proc Template.
Can I use DTD or XMLMap to export data to XML if I migrate to SAS9.2?
SAS Super FREQ
Posts: 8,743

Re: Exporting SAS Data to XML

Hi:
I believe that in SAS 9.2 (Phase 2), one of the “big” things in 9.2 is supposed to be that you can use the XMLMap for Export.

It says here
http://support.sas.com/documentation/cdl/en/whatsnew/62435/HTML/default/engxmlwhatsnew902.htm

that:


XMLMap functionality has the following enhancements for the XML92 engine nickname:

You can now export an XML document from a SAS data set using the XMLMap that was created to import the XML document. The XMLMap tells the XML engine how to map the SAS format (variables and observations) into the specific XML document structure. See Exporting XML Documents Using an XMLMap.


The information about the "pre-production" features and SAS 9.2 Phase 2 is found here:
http://support.sas.com/documentation/cdl/en/whatsnew/62435/HTML/default/engxmlwhatsnew902.htm
where it says:
Note: Much of the XML92 engine functionality is preproduction for SAS 9.2. Contact SAS Technical Support for a list of cautions before using this engine in your production jobs.


cynthia
N/A
Posts: 0

Re: Exporting SAS Data to XML

Thank you Cynthia.
Ask a Question
Discussion stats
  • 4 replies
  • 144 views
  • 0 likes
  • 3 in conversation