BookmarkSubscribeRSS Feed
spanky4_3
Calcite | Level 5

Hi everyone,

I hope this is the right group in the forum.

I am trying to export a SAS dataset to XML using LIBNAME. I can get the XML OK except when there are special/reserved characters (&,<,> etc). The text in that tag end up being escaped/convered to something like &#x62;&#x6F;&#x6F;&#x26; ... I would have expected a string such as 'Me & you' to end up as Me &amp; you. I am using SAS 9.2 on z/OS. I have tried using XMLPROCESS=RELAX (although I do want to escape the characters) but that made no difference.

Does anyone know why and more importantly how to get around this?

Mark.

1 REPLY 1
Cynthia_sas
SAS Super FREQ

Hi:

  This is probably a question best answered by Tech Support. I only find XMLPROCESS= in a description of IMPORTING from XML into SAS (not for EXPORT, in SAS 9.2). The documentation for 9.2, in addition,

http://support.sas.com/documentation/cdl/en/engxml/62845/HTML/default/viewer.htm#a002484784.htm shows the valid values as either CONFORM or PERMIT. (RELAX was a valid value in SAS 9.1.3). So at this point, Tech Support could look at ALL your code, clarify whether you are importing or exporting and help you figure out the best solution.

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