<?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 How to use Insert Into with a select query using proc sql in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-Insert-Into-with-a-select-query-using-proc-sql/m-p/392101#M94282</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Based on this page: &lt;A href="http://support.sas.com/kb/49/727.html" target="_blank"&gt;http://support.sas.com/kb/49/727.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;it has this code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
insert into ds1(id, name, address, phone)
select id, name, address, phone
from ds2;
quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So I modified it to use my tables and columns..&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
	INSERT INTO WORK.SQA_RESULTS(POLICY NUMBER, EVALUATEE_NAME)
	SELECT POLICY_NUMBER, EVALUATEE_NAME FROM WORK.APPEND_DATA;
quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is coming up with ERROR 78-322: Expecting a ','&lt;/P&gt;&lt;P&gt;Shows the affected code is on INSERT INTO line&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't figure out why it wouldn't work?&lt;/P&gt;</description>
    <pubDate>Thu, 31 Aug 2017 06:10:55 GMT</pubDate>
    <dc:creator>bradja</dc:creator>
    <dc:date>2017-08-31T06:10:55Z</dc:date>
    <item>
      <title>How to use Insert Into with a select query using proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-Insert-Into-with-a-select-query-using-proc-sql/m-p/392101#M94282</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Based on this page: &lt;A href="http://support.sas.com/kb/49/727.html" target="_blank"&gt;http://support.sas.com/kb/49/727.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;it has this code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
insert into ds1(id, name, address, phone)
select id, name, address, phone
from ds2;
quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So I modified it to use my tables and columns..&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
	INSERT INTO WORK.SQA_RESULTS(POLICY NUMBER, EVALUATEE_NAME)
	SELECT POLICY_NUMBER, EVALUATEE_NAME FROM WORK.APPEND_DATA;
quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is coming up with ERROR 78-322: Expecting a ','&lt;/P&gt;&lt;P&gt;Shows the affected code is on INSERT INTO line&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't figure out why it wouldn't work?&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2017 06:10:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-Insert-Into-with-a-select-query-using-proc-sql/m-p/392101#M94282</guid>
      <dc:creator>bradja</dc:creator>
      <dc:date>2017-08-31T06:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Insert Into with a select query using proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-Insert-Into-with-a-select-query-using-proc-sql/m-p/392112#M94289</link>
      <description>&lt;P&gt;I deleted the code and wrote it out again exactly the same and now it works!&lt;/P&gt;&lt;P&gt;No idea what the issue was.. however I am as happy as a lark &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2017 06:46:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-Insert-Into-with-a-select-query-using-proc-sql/m-p/392112#M94289</guid>
      <dc:creator>bradja</dc:creator>
      <dc:date>2017-08-31T06:46:47Z</dc:date>
    </item>
  </channel>
</rss>

