<?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 in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Append/m-p/120366#M33170</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okie..........&lt;/P&gt;&lt;P&gt;We get warnings about missing variables. Is that Right? Can we go ahead with those warnings ???????Can I ignore those warnings?????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Jun 2013 23:38:09 GMT</pubDate>
    <dc:creator>robertrao</dc:creator>
    <dc:date>2013-06-26T23:38:09Z</dc:date>
    <item>
      <title>Proc Append</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Append/m-p/120364#M33168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;I have two datasts and want to append them together( variable attributes are same in both the datasets)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATASET1(&lt;STRONG&gt;BASE=)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ID&amp;nbsp;&amp;nbsp; IN1&amp;nbsp; OUT1&amp;nbsp;&amp;nbsp; IN2&amp;nbsp;&amp;nbsp;&amp;nbsp; OUT2&amp;nbsp;&amp;nbsp;&amp;nbsp; IN3&amp;nbsp;&amp;nbsp;&amp;nbsp; OUT3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IN4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OUT4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATASET2(&lt;STRONG&gt;DATA=)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ID&amp;nbsp; IN1&amp;nbsp;&amp;nbsp; OUT1&amp;nbsp; IN2&amp;nbsp;&amp;nbsp; OUT2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try to append these two datasets I get messages in the LOG that &lt;/P&gt;&lt;P&gt;IN3&amp;nbsp; is not initialized&lt;/P&gt;&lt;P&gt;OUT3&amp;nbsp;&amp;nbsp;&amp;nbsp; is not initialized&lt;/P&gt;&lt;P&gt;IN4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; is not initialized&lt;/P&gt;&lt;P&gt;OUT4&amp;nbsp; is not initialized&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should I use Force Option????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUT I READ FROM DOCUMENTATION&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"You must use the FORCE option with PROC APPEND when the DATA= data set contains a variable that is not in the BASE= data set. If you modify the program to include the FORCE option, then it successfully concatenates the files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THAT IS NOT THE CASE WITH ME.....&lt;/P&gt;&lt;P&gt;DATA=dataset contains common variables always but not as many as those in the BASE dataset&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jun 2013 21:26:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Append/m-p/120364#M33168</guid>
      <dc:creator>robertrao</dc:creator>
      <dc:date>2013-06-26T21:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Append</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Append/m-p/120365#M33169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FORCE doesn't apply in this case.&amp;nbsp; You will not get "un&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;initialized&lt;/SPAN&gt;" messages, but you will get warnings about the missing variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is some example data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;data one two (keep=id in1 out1 in2 out2);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;input (id in1 out1 in2 out2 in3 out3 in4 out4) (1.);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;cards;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;123456789&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;proc append base=one data=two ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;NOTE: Appending WORK.TWO to WORK.ONE.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #339966;"&gt;WARNING: Variable in3 was not found on DATA file.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #339966;"&gt;WARNING: Variable out3 was not found on DATA file.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #339966;"&gt;WARNING: Variable in4 was not found on DATA file.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #339966;"&gt;WARNING: Variable out4 was not found on DATA file.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;NOTE: There were 1 observations read from the data set WORK.TWO.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;NOTE: 1 observations added.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;NOTE: The data set WORK.ONE has 2 observations and 9 variables.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you reverse the two datasets then you will need the FORCE option, but the extra variables will NOT be added to the base dataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;proc append base=two data=one force ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;NOTE: Appending WORK.ONE to WORK.TWO.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #339966;"&gt;WARNING: Variable in3 was not found on BASE file. The variable will not be added to the BASE file.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #339966;"&gt;WARNING: Variable out3 was not found on BASE file. The variable will not be added to the BASE file.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #339966;"&gt;WARNING: Variable in4 was not found on BASE file. The variable will not be added to the BASE file.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #339966;"&gt;WARNING: Variable out4 was not found on BASE file. The variable will not be added to the BASE file.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;NOTE: FORCE is specified, so dropping/truncating will occur.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;NOTE: There were 1 observations read from the data set WORK.ONE.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;NOTE: 1 observations added.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;NOTE: The data set WORK.TWO has 2 observations and 5 variables.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jun 2013 21:45:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Append/m-p/120365#M33169</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-06-26T21:45:37Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Append</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Append/m-p/120366#M33170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okie..........&lt;/P&gt;&lt;P&gt;We get warnings about missing variables. Is that Right? Can we go ahead with those warnings ???????Can I ignore those warnings?????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jun 2013 23:38:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Append/m-p/120366#M33170</guid>
      <dc:creator>robertrao</dc:creator>
      <dc:date>2013-06-26T23:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Append</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Append/m-p/120367#M33171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Only you know what fields you require, so the decision to ignore the warning is yours.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jun 2013 00:43:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Append/m-p/120367#M33171</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-06-27T00:43:22Z</dc:date>
    </item>
  </channel>
</rss>

