<?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: Insert Into when field does not exist in table inserting into in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Insert-Into-when-field-does-not-exist-in-table-inserting-into/m-p/206757#M267174</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why use INSERT?&amp;nbsp; Why not just use PROC APPEND.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc append base=a data=b force;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Jun 2015 12:49:43 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2015-06-16T12:49:43Z</dc:date>
    <item>
      <title>Insert Into when field does not exist in table inserting into</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Insert-Into-when-field-does-not-exist-in-table-inserting-into/m-p/206756#M267173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a unique situation, I have 2 tables, one is getting created dynamically and the other is the table I want to insert my data into. My problem is the dynamic table one time might only I have 10 fields and the next time it could have 20 fields. I want to be able to just add the record with blank or nulls in the fields where I do not have in my dynamic table. Can this be done automatically?&lt;BR /&gt; INSERT INTO TableA&lt;BR /&gt; SELECT *&lt;BR /&gt; FROM TableB&lt;/P&gt;&lt;P&gt;My thoughts were I could just to a SELECT *, but then I get the error about missing fields.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jun 2015 21:56:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Insert-Into-when-field-does-not-exist-in-table-inserting-into/m-p/206756#M267173</guid>
      <dc:creator>LisaSAS</dc:creator>
      <dc:date>2015-06-15T21:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: Insert Into when field does not exist in table inserting into</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Insert-Into-when-field-does-not-exist-in-table-inserting-into/m-p/206757#M267174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why use INSERT?&amp;nbsp; Why not just use PROC APPEND.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc append base=a data=b force;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2015 12:49:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Insert-Into-when-field-does-not-exist-in-table-inserting-into/m-p/206757#M267174</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2015-06-16T12:49:43Z</dc:date>
    </item>
  </channel>
</rss>

