<?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: proc append to merge two macro datasets in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-append-to-merge-two-macro-datasets/m-p/493545#M129840</link>
    <description>&lt;P&gt;PROC APPEND does not support adding new variables.&amp;nbsp;&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>Fri, 07 Sep 2018 16:32:19 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2018-09-07T16:32:19Z</dc:date>
    <item>
      <title>proc append to merge two macro datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-append-to-merge-two-macro-datasets/m-p/493536#M129836</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;trying two merge two datasets, each dataset has 3 varables. in each dataset 2 variables are same and one is different. giving error as below&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc append base=patch.other_final data=Patch.Other_Infra&amp;amp;i force; run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE: Appending PATCH.OTHER_INFRA2 to PATCH.OTHER_FINAL.&lt;BR /&gt;WARNING: Variable TKT0200342_Oracle_TFT was not found on BASE file. The variable will not be&lt;BR /&gt;added to the BASE file.&lt;BR /&gt;WARNING: Variable TKT0197527_STTPoint_PTP was not found on DATA file.&lt;BR /&gt;NOTE: FORCE is specified, so dropping/truncating will occur.&lt;BR /&gt;NOTE: There were 140 observations read from the data set PATCH.OTHER_INFRA2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2018 16:11:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-append-to-merge-two-macro-datasets/m-p/493536#M129836</guid>
      <dc:creator>radha009</dc:creator>
      <dc:date>2018-09-07T16:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: proc append to merge two macro datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-append-to-merge-two-macro-datasets/m-p/493540#M129838</link>
      <description>&lt;P&gt;this should give you what you are asking for.&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;set&amp;nbsp;&lt;SPAN&gt; PATCH.OTHER_FINAL(in=ina)&amp;nbsp;PATCH.OTHER_INFRA2(in=inb);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Or&amp;nbsp;you can merge the data.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Append is used to stack tables that are the same.&lt;/SPAN&gt;&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>Fri, 07 Sep 2018 16:28:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-append-to-merge-two-macro-datasets/m-p/493540#M129838</guid>
      <dc:creator>VDD</dc:creator>
      <dc:date>2018-09-07T16:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: proc append to merge two macro datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-append-to-merge-two-macro-datasets/m-p/493542#M129839</link>
      <description>&lt;P&gt;SAS has many, many ways to combine data sets. PROC APPEND is only one of them.&amp;nbsp; If that's not working (and it won't work if you are trying to add a new variable), give a small example of what you would like the outcome to be.&amp;nbsp; Just show 2 observations for each incoming data set, and what you would like the final data set to look like.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2018 16:30:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-append-to-merge-two-macro-datasets/m-p/493542#M129839</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-09-07T16:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: proc append to merge two macro datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-append-to-merge-two-macro-datasets/m-p/493545#M129840</link>
      <description>&lt;P&gt;PROC APPEND does not support adding new variables.&amp;nbsp;&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>Fri, 07 Sep 2018 16:32:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-append-to-merge-two-macro-datasets/m-p/493545#M129840</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-09-07T16:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: proc append to merge two macro datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-append-to-merge-two-macro-datasets/m-p/493551#M129844</link>
      <description>&lt;P&gt;merge may be what you want to do&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sort data= a out=asort;&lt;BR /&gt;&amp;nbsp;by var1 var2;&lt;BR /&gt;run;&lt;BR /&gt;proc sort data= b out=bsort;&lt;BR /&gt;&amp;nbsp;by var1 var2;&lt;BR /&gt;run;&lt;BR /&gt;data want;&lt;BR /&gt;&amp;nbsp;merge asort(in=ina) bsort(in=inb);&lt;BR /&gt;&amp;nbsp;by var1 var2;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if you only want records found in table a you can do this&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;data want;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;merge asort(in=ina) bsort(in=inb);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;by var1 var2;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;if ina;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2018 16:42:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-append-to-merge-two-macro-datasets/m-p/493551#M129844</guid>
      <dc:creator>VDD</dc:creator>
      <dc:date>2018-09-07T16:42:04Z</dc:date>
    </item>
  </channel>
</rss>

