<?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 Concatenate XML files in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Concatenate-XML-files/m-p/489003#M127542</link>
    <description>&lt;P&gt;All,&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;If I have 2 SAS datasets that are stored as XML files, how can I concatenate them ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname XMLData xmlv2 '/data/Test.xml';

data Work.TestACMod;
	set Work.TestAC;
	format ReadTime datetime.;
run;

data XMLData.TestAC;
	Set Work.TestACMod;
run;

libname XMLData1 xmlv2 '/data/Test1.xml';

data Work.TestSiteDet;
	set Work.Sit;
	format CoDate datetime.;
run;

data XMLData1.TestSiteDet;
	set Work.TestSiteDet;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 22 Aug 2018 18:37:34 GMT</pubDate>
    <dc:creator>UdayGuntupalli</dc:creator>
    <dc:date>2018-08-22T18:37:34Z</dc:date>
    <item>
      <title>Concatenate XML files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Concatenate-XML-files/m-p/489003#M127542</link>
      <description>&lt;P&gt;All,&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;If I have 2 SAS datasets that are stored as XML files, how can I concatenate them ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname XMLData xmlv2 '/data/Test.xml';

data Work.TestACMod;
	set Work.TestAC;
	format ReadTime datetime.;
run;

data XMLData.TestAC;
	Set Work.TestACMod;
run;

libname XMLData1 xmlv2 '/data/Test1.xml';

data Work.TestSiteDet;
	set Work.Sit;
	format CoDate datetime.;
run;

data XMLData1.TestSiteDet;
	set Work.TestSiteDet;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 22 Aug 2018 18:37:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Concatenate-XML-files/m-p/489003#M127542</guid>
      <dc:creator>UdayGuntupalli</dc:creator>
      <dc:date>2018-08-22T18:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate XML files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Concatenate-XML-files/m-p/489006#M127543</link>
      <description>&lt;P&gt;Just as if you were concatenating SAS Datasets.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;&lt;BR /&gt;set &lt;/CODE&gt;&lt;CODE class="  language-sas"&gt;XMLData&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;TestAC &lt;/CODE&gt;&lt;CODE class=" language-sas"&gt;XMLData1.TestSiteDet;&lt;BR /&gt;run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 22 Aug 2018 18:53:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Concatenate-XML-files/m-p/489006#M127543</guid>
      <dc:creator>SuryaKiran</dc:creator>
      <dc:date>2018-08-22T18:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate XML files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Concatenate-XML-files/m-p/489012#M127546</link>
      <description>&lt;P&gt;I think you'll need a SQL join. You say concatenate but based on my knowledge of XML it looks like it was parsed to multiple tables and you want to combine them again. We can't tell you how to join it without more information on the data, specifically the logic to link it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I'm incorrect, one of the other users solution will work for you.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/27543"&gt;@UdayGuntupalli&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;All,&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;If I have 2 SAS datasets that are stored as XML files, how can I concatenate them ?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname XMLData xmlv2 '/data/Test.xml';

data Work.TestACMod;
	set Work.TestAC;
	format ReadTime datetime.;
run;

data XMLData.TestAC;
	Set Work.TestACMod;
run;

libname XMLData1 xmlv2 '/data/Test1.xml';

data Work.TestSiteDet;
	set Work.Sit;
	format CoDate datetime.;
run;

data XMLData1.TestSiteDet;
	set Work.TestSiteDet;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Aug 2018 19:17:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Concatenate-XML-files/m-p/489012#M127546</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-08-22T19:17:28Z</dc:date>
    </item>
  </channel>
</rss>

