BookmarkSubscribeRSS Feed
deleted_user
Not applicable
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.
4 REPLIES 4
andreas_lds
Jade | Level 19
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
deleted_user
Not applicable
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?
Cynthia_sas
SAS Super FREQ
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
deleted_user
Not applicable
Thank you Cynthia.

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
  • 4 replies
  • 1154 views
  • 0 likes
  • 3 in conversation