<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic XML ERROR: Some code points did not transcode in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/XML-ERROR-Some-code-points-did-not-transcode/m-p/704837#M216105</link>
    <description>&lt;P&gt;I am attempting to parse an XML document and keep getting the error in the subject line when I try to run my PROC SQL against the tables. The tables show up nicely in the library. I just can't query them without getting the transcode error.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename clinvw "xmlfile.xml" encoding="utf-8";
libname clinvw xmlv2 compat=yes automap=reuse xmlmap="xmlmapfile.map"; 
    	PROC SQL;   
    		select    
    			s.SubjectData_SubjectKey as subject,   
    			r.SiteRef_LocationOID as sitenumber,   
    			e.StudyEventData_StudyEventOID as visitoid,   
    			e.StudyEventData_StudyEventRepeatK as visitrepeatkey,   
    			f.FormData_FormOID as formoid,   
    			f.FormData_FormRepeatKey as formrepeatkey,   
    			g.ItemGroupData_ItemGroupOID as itemgroup,   
     			TRANWRD(i.ItemData_ItemOID,cat(f.FormData_FormOID,'.'),'') as item,    
    			i.ItemData_Value as itemvalue,   
    			today() as importtime    
    		FROM clinvw.SubjectData s   
    		inner join clinvw.SiteRef r on s.SubjectData_ORDINAL = r.SubjectData_ORDINAL   
    		left join clinvw.StudyEventData e on s.SubjectData_ORDINAL = e.SubjectData_ORDINAL   
    		left join clinvw.FormData f on e.StudyEventData_ORDINAL = f.StudyEventData_ORDINAL   
    		left join clinvw.ItemGroupData g on f.FormData_ORDINAL = g.FormData_ORDINAL   
    		left join clinvw.ItemData i on g.ItemGroupData_ORDINAL = i.ItemGroupData_ORDINAL;    
    	QUIT;    &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Any ideas on how I can get this working?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Wed, 09 Dec 2020 18:59:20 GMT</pubDate>
    <dc:creator>evaleah</dc:creator>
    <dc:date>2020-12-09T18:59:20Z</dc:date>
    <item>
      <title>XML ERROR: Some code points did not transcode</title>
      <link>https://communities.sas.com/t5/SAS-Programming/XML-ERROR-Some-code-points-did-not-transcode/m-p/704837#M216105</link>
      <description>&lt;P&gt;I am attempting to parse an XML document and keep getting the error in the subject line when I try to run my PROC SQL against the tables. The tables show up nicely in the library. I just can't query them without getting the transcode error.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename clinvw "xmlfile.xml" encoding="utf-8";
libname clinvw xmlv2 compat=yes automap=reuse xmlmap="xmlmapfile.map"; 
    	PROC SQL;   
    		select    
    			s.SubjectData_SubjectKey as subject,   
    			r.SiteRef_LocationOID as sitenumber,   
    			e.StudyEventData_StudyEventOID as visitoid,   
    			e.StudyEventData_StudyEventRepeatK as visitrepeatkey,   
    			f.FormData_FormOID as formoid,   
    			f.FormData_FormRepeatKey as formrepeatkey,   
    			g.ItemGroupData_ItemGroupOID as itemgroup,   
     			TRANWRD(i.ItemData_ItemOID,cat(f.FormData_FormOID,'.'),'') as item,    
    			i.ItemData_Value as itemvalue,   
    			today() as importtime    
    		FROM clinvw.SubjectData s   
    		inner join clinvw.SiteRef r on s.SubjectData_ORDINAL = r.SubjectData_ORDINAL   
    		left join clinvw.StudyEventData e on s.SubjectData_ORDINAL = e.SubjectData_ORDINAL   
    		left join clinvw.FormData f on e.StudyEventData_ORDINAL = f.StudyEventData_ORDINAL   
    		left join clinvw.ItemGroupData g on f.FormData_ORDINAL = g.FormData_ORDINAL   
    		left join clinvw.ItemData i on g.ItemGroupData_ORDINAL = i.ItemGroupData_ORDINAL;    
    	QUIT;    &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Any ideas on how I can get this working?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2020 18:59:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/XML-ERROR-Some-code-points-did-not-transcode/m-p/704837#M216105</guid>
      <dc:creator>evaleah</dc:creator>
      <dc:date>2020-12-09T18:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: XML ERROR: Some code points did not transcode</title>
      <link>https://communities.sas.com/t5/SAS-Programming/XML-ERROR-Some-code-points-did-not-transcode/m-p/704865#M216113</link>
      <description>&lt;P&gt;Turns out I just needed to set SAS Studio to UTF-8 encoding via the hamburger icon in the top right corner. Everyone else seemed to know this hence my inability to find posts about it.&lt;/P&gt;&lt;P&gt;For any future searchers... From that icon -&amp;gt; Change SAS Workspace Header -&amp;gt; UTF-8 and then it all works as expected.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2020 20:38:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/XML-ERROR-Some-code-points-did-not-transcode/m-p/704865#M216113</guid>
      <dc:creator>evaleah</dc:creator>
      <dc:date>2020-12-09T20:38:39Z</dc:date>
    </item>
  </channel>
</rss>

