<?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 exporting multiple sas tables into unique xml file using map in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/exporting-multiple-sas-tables-into-unique-xml-file-using-map/m-p/548233#M33367</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using SAS xml mapper to import an xml file&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After running the code obtained by the XML mapper in SAS EG, I have several SAS tables&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After making my changes, I'd like to export back all these tables as the unique XML they're coming from, maintaining the same hierarchical structure of the original xml file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is an example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Original xml (just a part of it):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;Country&amp;gt;&lt;BR /&gt;&amp;lt;ID&amp;gt;AA597FD&amp;lt;/ID&amp;gt;&lt;BR /&gt;&amp;lt;Name&amp;gt;A&amp;lt;/Name&amp;gt;&lt;BR /&gt;&amp;lt;ShortName&amp;gt;A&amp;lt;/ShortName&amp;gt;&lt;BR /&gt;&amp;lt;Private&amp;gt;no&amp;lt;/Private&amp;gt;&lt;BR /&gt;&amp;lt;System&amp;gt;&lt;BR /&gt;&amp;lt;ID&amp;gt;8b8&amp;lt;/ID&amp;gt;&lt;BR /&gt;&amp;lt;Name&amp;gt;a7&amp;lt;/Name&amp;gt;&lt;BR /&gt;&amp;lt;CountryID&amp;gt;AA597FD&amp;lt;/CountryID&amp;gt;&lt;BR /&gt;&amp;lt;CurrencyOutput&amp;gt;euro&amp;lt;/CurrencyOutput&amp;gt;&lt;BR /&gt;&amp;lt;CurrencyParam&amp;gt;euro&amp;lt;/CurrencyParam&amp;gt;&lt;BR /&gt;&amp;lt;ExchangeRateEuro&amp;gt;1&amp;lt;/ExchangeRateEuro&amp;gt;&lt;BR /&gt;&amp;lt;HeadDefInc&amp;gt;ils&amp;lt;/HeadDefInc&amp;gt;&lt;BR /&gt;&amp;lt;Private&amp;gt;no&amp;lt;/Private&amp;gt;&lt;BR /&gt;&amp;lt;Order&amp;gt;2&amp;lt;/Order&amp;gt;&lt;BR /&gt;&amp;lt;Year&amp;gt;2007&amp;lt;/Year&amp;gt;&lt;BR /&gt;&amp;lt;Policy&amp;gt;&lt;BR /&gt;&amp;lt;ID&amp;gt;cc&amp;lt;/ID&amp;gt;&lt;BR /&gt;&amp;lt;SystemID&amp;gt;8b8&amp;lt;/SystemID&amp;gt;&lt;BR /&gt;&amp;lt;Name&amp;gt;Cat&amp;lt;/Name&amp;gt;&lt;BR /&gt;&amp;lt;Type&amp;gt;def&amp;lt;/Type&amp;gt;&lt;BR /&gt;&amp;lt;Comment&amp;gt;&amp;lt;![CDATA[DEF: COTS]]&amp;gt;&amp;lt;/Comment&amp;gt;&lt;BR /&gt;&amp;lt;PrivateComment /&amp;gt;&lt;BR /&gt;&amp;lt;Order&amp;gt;3&amp;lt;/Order&amp;gt;&lt;BR /&gt;&amp;lt;Switch&amp;gt;on&amp;lt;/Switch&amp;gt;&lt;BR /&gt;&amp;lt;Private /&amp;gt;&lt;BR /&gt;&amp;lt;Function&amp;gt;&lt;BR /&gt;&amp;lt;ID&amp;gt;d79&amp;lt;/ID&amp;gt;&lt;BR /&gt;&amp;lt;PolicyID&amp;gt;3cc&amp;lt;/PolicyID&amp;gt;&lt;BR /&gt;&amp;lt;Name&amp;gt;Defst&amp;lt;/Name&amp;gt;&lt;BR /&gt;&amp;lt;Comment&amp;gt;&amp;lt;![CDATA[Min and Max Base]]&amp;gt;&amp;lt;/Comment&amp;gt;&lt;BR /&gt;&amp;lt;PrivateComment /&amp;gt;&lt;BR /&gt;&amp;lt;Order&amp;gt;3&amp;lt;/Order&amp;gt;&lt;BR /&gt;&amp;lt;Switch&amp;gt;on&amp;lt;/Switch&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;lt;Parameter&amp;gt;&lt;BR /&gt;...&lt;BR /&gt;&amp;lt;/Parameter&amp;gt;&lt;BR /&gt;&amp;lt;Parameter&amp;gt;&lt;BR /&gt;...&lt;BR /&gt;&amp;lt;/Parameter&amp;gt;&lt;BR /&gt;&amp;lt;Parameter&amp;gt;&lt;BR /&gt;...&lt;BR /&gt;&amp;lt;/Parameter&amp;gt;&lt;BR /&gt;&amp;lt;Parameter&amp;gt;&lt;BR /&gt;...&lt;BR /&gt;&amp;lt;/Parameter&amp;gt;&lt;BR /&gt;&amp;lt;/Function&amp;gt;&lt;BR /&gt;&amp;lt;Function&amp;gt;&lt;BR /&gt;...&lt;BR /&gt;&amp;lt;/Function&amp;gt;&lt;BR /&gt;&amp;lt;/Policy&amp;gt;&lt;BR /&gt;&amp;lt;/System&amp;gt;&lt;BR /&gt;&amp;lt;/Country&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From the xml mapper I obtain four tables corresponding to Function, Policy, System and Country&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to merge them, but the resulting xml after exporting is not the same and if I use the map is giving me errors like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: XMLMap for output table COUNTRY requested but that table did not exist in the XMLMap output section.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="error.png" style="width: 403px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/28422iB47B1B91C1329086/image-size/large?v=v2&amp;amp;px=999" role="button" title="error.png" alt="error.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea on how to do it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Wed, 03 Apr 2019 16:40:23 GMT</pubDate>
    <dc:creator>fran_b</dc:creator>
    <dc:date>2019-04-03T16:40:23Z</dc:date>
    <item>
      <title>exporting multiple sas tables into unique xml file using map</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/exporting-multiple-sas-tables-into-unique-xml-file-using-map/m-p/548233#M33367</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using SAS xml mapper to import an xml file&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After running the code obtained by the XML mapper in SAS EG, I have several SAS tables&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After making my changes, I'd like to export back all these tables as the unique XML they're coming from, maintaining the same hierarchical structure of the original xml file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is an example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Original xml (just a part of it):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;Country&amp;gt;&lt;BR /&gt;&amp;lt;ID&amp;gt;AA597FD&amp;lt;/ID&amp;gt;&lt;BR /&gt;&amp;lt;Name&amp;gt;A&amp;lt;/Name&amp;gt;&lt;BR /&gt;&amp;lt;ShortName&amp;gt;A&amp;lt;/ShortName&amp;gt;&lt;BR /&gt;&amp;lt;Private&amp;gt;no&amp;lt;/Private&amp;gt;&lt;BR /&gt;&amp;lt;System&amp;gt;&lt;BR /&gt;&amp;lt;ID&amp;gt;8b8&amp;lt;/ID&amp;gt;&lt;BR /&gt;&amp;lt;Name&amp;gt;a7&amp;lt;/Name&amp;gt;&lt;BR /&gt;&amp;lt;CountryID&amp;gt;AA597FD&amp;lt;/CountryID&amp;gt;&lt;BR /&gt;&amp;lt;CurrencyOutput&amp;gt;euro&amp;lt;/CurrencyOutput&amp;gt;&lt;BR /&gt;&amp;lt;CurrencyParam&amp;gt;euro&amp;lt;/CurrencyParam&amp;gt;&lt;BR /&gt;&amp;lt;ExchangeRateEuro&amp;gt;1&amp;lt;/ExchangeRateEuro&amp;gt;&lt;BR /&gt;&amp;lt;HeadDefInc&amp;gt;ils&amp;lt;/HeadDefInc&amp;gt;&lt;BR /&gt;&amp;lt;Private&amp;gt;no&amp;lt;/Private&amp;gt;&lt;BR /&gt;&amp;lt;Order&amp;gt;2&amp;lt;/Order&amp;gt;&lt;BR /&gt;&amp;lt;Year&amp;gt;2007&amp;lt;/Year&amp;gt;&lt;BR /&gt;&amp;lt;Policy&amp;gt;&lt;BR /&gt;&amp;lt;ID&amp;gt;cc&amp;lt;/ID&amp;gt;&lt;BR /&gt;&amp;lt;SystemID&amp;gt;8b8&amp;lt;/SystemID&amp;gt;&lt;BR /&gt;&amp;lt;Name&amp;gt;Cat&amp;lt;/Name&amp;gt;&lt;BR /&gt;&amp;lt;Type&amp;gt;def&amp;lt;/Type&amp;gt;&lt;BR /&gt;&amp;lt;Comment&amp;gt;&amp;lt;![CDATA[DEF: COTS]]&amp;gt;&amp;lt;/Comment&amp;gt;&lt;BR /&gt;&amp;lt;PrivateComment /&amp;gt;&lt;BR /&gt;&amp;lt;Order&amp;gt;3&amp;lt;/Order&amp;gt;&lt;BR /&gt;&amp;lt;Switch&amp;gt;on&amp;lt;/Switch&amp;gt;&lt;BR /&gt;&amp;lt;Private /&amp;gt;&lt;BR /&gt;&amp;lt;Function&amp;gt;&lt;BR /&gt;&amp;lt;ID&amp;gt;d79&amp;lt;/ID&amp;gt;&lt;BR /&gt;&amp;lt;PolicyID&amp;gt;3cc&amp;lt;/PolicyID&amp;gt;&lt;BR /&gt;&amp;lt;Name&amp;gt;Defst&amp;lt;/Name&amp;gt;&lt;BR /&gt;&amp;lt;Comment&amp;gt;&amp;lt;![CDATA[Min and Max Base]]&amp;gt;&amp;lt;/Comment&amp;gt;&lt;BR /&gt;&amp;lt;PrivateComment /&amp;gt;&lt;BR /&gt;&amp;lt;Order&amp;gt;3&amp;lt;/Order&amp;gt;&lt;BR /&gt;&amp;lt;Switch&amp;gt;on&amp;lt;/Switch&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;lt;Parameter&amp;gt;&lt;BR /&gt;...&lt;BR /&gt;&amp;lt;/Parameter&amp;gt;&lt;BR /&gt;&amp;lt;Parameter&amp;gt;&lt;BR /&gt;...&lt;BR /&gt;&amp;lt;/Parameter&amp;gt;&lt;BR /&gt;&amp;lt;Parameter&amp;gt;&lt;BR /&gt;...&lt;BR /&gt;&amp;lt;/Parameter&amp;gt;&lt;BR /&gt;&amp;lt;Parameter&amp;gt;&lt;BR /&gt;...&lt;BR /&gt;&amp;lt;/Parameter&amp;gt;&lt;BR /&gt;&amp;lt;/Function&amp;gt;&lt;BR /&gt;&amp;lt;Function&amp;gt;&lt;BR /&gt;...&lt;BR /&gt;&amp;lt;/Function&amp;gt;&lt;BR /&gt;&amp;lt;/Policy&amp;gt;&lt;BR /&gt;&amp;lt;/System&amp;gt;&lt;BR /&gt;&amp;lt;/Country&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From the xml mapper I obtain four tables corresponding to Function, Policy, System and Country&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to merge them, but the resulting xml after exporting is not the same and if I use the map is giving me errors like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: XMLMap for output table COUNTRY requested but that table did not exist in the XMLMap output section.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="error.png" style="width: 403px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/28422iB47B1B91C1329086/image-size/large?v=v2&amp;amp;px=999" role="button" title="error.png" alt="error.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea on how to do it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2019 16:40:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/exporting-multiple-sas-tables-into-unique-xml-file-using-map/m-p/548233#M33367</guid>
      <dc:creator>fran_b</dc:creator>
      <dc:date>2019-04-03T16:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: exporting multiple sas tables into unique xml file using map</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/exporting-multiple-sas-tables-into-unique-xml-file-using-map/m-p/597710#M34951</link>
      <description>This might help.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/SAS-Programming/can-t-view-sas-data-sets-from-xml-files/m-p/412337#M100844" target="_blank"&gt;https://communities.sas.com/t5/SAS-Programming/can-t-view-sas-data-sets-from-xml-files/m-p/412337#M100844&lt;/A&gt;</description>
      <pubDate>Fri, 18 Oct 2019 13:35:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/exporting-multiple-sas-tables-into-unique-xml-file-using-map/m-p/597710#M34951</guid>
      <dc:creator>tomrvincent</dc:creator>
      <dc:date>2019-10-18T13:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: exporting multiple sas tables into unique xml file using map</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/exporting-multiple-sas-tables-into-unique-xml-file-using-map/m-p/611057#M35250</link>
      <description>&lt;P&gt;Thanks for your answer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had a look, but I don't think this can solve my problem&lt;/P&gt;&lt;P&gt;I can perfectly import the xml in SAS, but divided in multiple SAS tables&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My problem is that I cannot export back all these tables as an XML file keeping the hierarchical structure&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2019 16:26:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/exporting-multiple-sas-tables-into-unique-xml-file-using-map/m-p/611057#M35250</guid>
      <dc:creator>fran_b</dc:creator>
      <dc:date>2019-12-11T16:26:37Z</dc:date>
    </item>
    <item>
      <title>Re: exporting multiple sas tables into unique xml file using map</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/exporting-multiple-sas-tables-into-unique-xml-file-using-map/m-p/611060#M35251</link>
      <description>How about this one?&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/engxml/65362/HTML/default/viewer.htm#p030dni55gms3qn1xxc7xxpzn06p.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/engxml/65362/HTML/default/viewer.htm#p030dni55gms3qn1xxc7xxpzn06p.htm&lt;/A&gt;</description>
      <pubDate>Wed, 11 Dec 2019 16:31:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/exporting-multiple-sas-tables-into-unique-xml-file-using-map/m-p/611060#M35251</guid>
      <dc:creator>tomrvincent</dc:creator>
      <dc:date>2019-12-11T16:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: exporting multiple sas tables into unique xml file using map</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/exporting-multiple-sas-tables-into-unique-xml-file-using-map/m-p/828206#M41240</link>
      <description>&lt;P&gt;Use xml mapper to map the xml to a single table that contains all the information you need.&lt;BR /&gt;In that map add the &amp;lt;OUTPUT&amp;gt; tags and tableref that single table.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2022 02:49:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/exporting-multiple-sas-tables-into-unique-xml-file-using-map/m-p/828206#M41240</guid>
      <dc:creator>jocas</dc:creator>
      <dc:date>2022-08-11T02:49:28Z</dc:date>
    </item>
  </channel>
</rss>

