<?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: Merging Dataset Dynamically with New Column Name added to specify file name in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Merging-Dataset-Dynamically-with-New-Column-Name-added-to/m-p/280417#M56660</link>
    <description>&lt;P&gt;I have created this through SQL while calculating percentage difference between two values and displayed in a table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 27 Jun 2016 13:46:16 GMT</pubDate>
    <dc:creator>sdixit</dc:creator>
    <dc:date>2016-06-27T13:46:16Z</dc:date>
    <item>
      <title>Merging Dataset Dynamically with New Column Name added to specify file name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merging-Dataset-Dynamically-with-New-Column-Name-added-to/m-p/278716#M56086</link>
      <description>&lt;P&gt;I would like to append 16 datasets having same column and variables name. I would like to do that using macro to stack each table&lt;/P&gt;&lt;P&gt;and create one with new variable having dataset name to distinguish the data in merged table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please suggest.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example : I have Table Customer and Client having variable as &amp;nbsp;A ,B,C, D..and soon on.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would like to create one table MERGED&lt;/P&gt;&lt;P&gt;AS data from both table and new variable&lt;/P&gt;&lt;P&gt;A&amp;nbsp;&amp;nbsp; B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NEW_VARIABLE&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Customer_file&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Client_file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So that data can be differentiated based on New_variable.?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2016 15:36:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merging-Dataset-Dynamically-with-New-Column-Name-added-to/m-p/278716#M56086</guid>
      <dc:creator>sdixit</dc:creator>
      <dc:date>2016-06-20T15:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: Merging Dataset Dynamically with New Column Name added to specify file name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merging-Dataset-Dynamically-with-New-Column-Name-added-to/m-p/278728#M56089</link>
      <description>&lt;P&gt;Use set statement option &lt;STRONG&gt;indsname=&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data all;&lt;/P&gt;
&lt;P&gt;set A B C D E F G indsname=dsn;&lt;/P&gt;
&lt;P&gt;NEW_VARIABLE = dsn;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2016 16:43:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merging-Dataset-Dynamically-with-New-Column-Name-added-to/m-p/278728#M56089</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-06-20T16:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: Merging Dataset Dynamically with New Column Name added to specify file name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merging-Dataset-Dynamically-with-New-Column-Name-added-to/m-p/278735#M56095</link>
      <description>Yes, The value of the new variable is same as the dataset name. That's why I need to write it in a macro. Please suggest</description>
      <pubDate>Mon, 20 Jun 2016 16:47:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merging-Dataset-Dynamically-with-New-Column-Name-added-to/m-p/278735#M56095</guid>
      <dc:creator>sdixit</dc:creator>
      <dc:date>2016-06-20T16:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: Merging Dataset Dynamically with New Column Name added to specify file name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merging-Dataset-Dynamically-with-New-Column-Name-added-to/m-p/278740#M56098</link>
      <description>&lt;P&gt;Sorry, I don't understand the question. The simple code provided concatenates datasets A, B, C etc. and adds NEW_VARIABLE to the resulting dataset with the name of the dataset of origin. Do you mean some other sort of merging operation? Are you asking for a macro variable or macro program?&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2016 17:01:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merging-Dataset-Dynamically-with-New-Column-Name-added-to/m-p/278740#M56098</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-06-20T17:01:04Z</dc:date>
    </item>
    <item>
      <title>Re: Merging Dataset Dynamically with New Column Name added to specify file name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merging-Dataset-Dynamically-with-New-Column-Name-added-to/m-p/280417#M56660</link>
      <description>&lt;P&gt;I have created this through SQL while calculating percentage difference between two values and displayed in a table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2016 13:46:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merging-Dataset-Dynamically-with-New-Column-Name-added-to/m-p/280417#M56660</guid>
      <dc:creator>sdixit</dc:creator>
      <dc:date>2016-06-27T13:46:16Z</dc:date>
    </item>
  </channel>
</rss>

