<?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 Re: Export to XML in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Export-to-XML/m-p/426429#M105055</link>
    <description>&lt;P&gt;Make sure that the XML file does not exist already.&lt;/P&gt;</description>
    <pubDate>Wed, 10 Jan 2018 13:20:37 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2018-01-10T13:20:37Z</dc:date>
    <item>
      <title>Export to XML</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-to-XML/m-p/426421#M105051</link>
      <description>&lt;P&gt;I'm trying to convert the SAS dataset to XML, but I end up with error as mentioned below. Could you please help me understand the cause for this issue?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname dds xml "/TST/wrk1/dynamic_pricing.xml";

data dds.dynamic_pricing;
set WORK.DPF_OUTPUTSAS_EXAMPLE1_0001;
run;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Error.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/17761i1AA79610E915361C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Error.png" alt="Error.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Error.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/17762iAE78ECBC68855219/image-size/large?v=v2&amp;amp;px=999" role="button" title="Error.png" alt="Error.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2018 13:01:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-to-XML/m-p/426421#M105051</guid>
      <dc:creator>Babloo</dc:creator>
      <dc:date>2018-01-10T13:01:57Z</dc:date>
    </item>
    <item>
      <title>Re: Export to XML</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-to-XML/m-p/426429#M105055</link>
      <description>&lt;P&gt;Make sure that the XML file does not exist already.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2018 13:20:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-to-XML/m-p/426429#M105055</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-01-10T13:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: Export to XML</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-to-XML/m-p/426430#M105056</link>
      <description>&lt;P&gt;XML file doesn't exist before.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2018 13:21:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-to-XML/m-p/426430#M105056</guid>
      <dc:creator>Babloo</dc:creator>
      <dc:date>2018-01-10T13:21:28Z</dc:date>
    </item>
    <item>
      <title>Re: Export to XML</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-to-XML/m-p/426432#M105058</link>
      <description>&lt;P&gt;I see. When running this code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname out xml '$HOME/sascommunity/class.xml';

data out.class;
set sashelp.class;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I get the same message, but the log&lt;/P&gt;
&lt;PRE&gt;24         libname out xml '$HOME/sascommunity/class.xml';
NOTE: Libref OUT was successfully assigned as follows: 
      Engine:        XML 
      Physical Name: $HOME/sascommunity/class.xml
25         
26         data out.class;
27         set sashelp.class;
28         run;

NOTE: There were 19 observations read from the data set SASHELP.CLASS.
NOTE: The data set OUT.CLASS has 19 observations and 5 variables.
NOTE: DATA statement used (Total process time):
      real time           0.13 seconds
      cpu time            0.02 seconds
&lt;/PRE&gt;
&lt;P&gt;clearly shows that the step worked. But EG can't display the resulting dataset, which seems to be a consequence of the internal SQL code that EG uses to retrieve data.&lt;/P&gt;
&lt;P&gt;OTOH, doing&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
select * from out.class;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;worked fine.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Edit:&lt;/P&gt;
&lt;P&gt;But&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
select name, height from out.class;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;produced totally wrong output, while not showing any problem in the log:&lt;/P&gt;
&lt;PRE&gt;NAME       HEIGHT
-----------------
ÿÿþ             0
ÿÿþ             0
ÿÿþ             0
ÿÿþ             0
ÿÿþ             0
ÿÿþ             0
ÿÿþ             0
ÿÿþ             0
ÿÿþ             0
ÿÿþ             0
ÿÿþ             0
ÿÿþ             0
ÿÿþ             0
ÿÿþ             0
ÿÿþ             0
ÿÿþ             0
ÿÿþ             0
ÿÿþ             0
ÿÿþ             0
&lt;/PRE&gt;
&lt;P&gt;So it seems that SAS (at least with proc sql) has some serious problems working with that engine. Open a track with SAS TS.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2018 13:36:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-to-XML/m-p/426432#M105058</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-01-10T13:36:19Z</dc:date>
    </item>
  </channel>
</rss>

