<?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 Not able to insert multiple values at a time by &amp;quot;insert into&amp;quot; in proc sql. in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Not-able-to-insert-multiple-values-at-a-time-by-quot-insert-into/m-p/169401#M43801</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please do me a favour , I am trying to insert multiple rows in the table in db2 database via sas but i am not able to insert multiple rows at a time.&lt;/P&gt;&lt;P&gt;when i use&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;insert into table_name (a,b,c)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;values('a',2,3);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;it works but when i use &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;insert into table_name&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;select a,b,c &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;from table2.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;then it is not working.&lt;/P&gt;&lt;P&gt;i am getting the error.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I am using SAS EG 6.0.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 May 2014 17:45:18 GMT</pubDate>
    <dc:creator>Arjun_Singh</dc:creator>
    <dc:date>2014-05-22T17:45:18Z</dc:date>
    <item>
      <title>Not able to insert multiple values at a time by "insert into" in proc sql.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Not-able-to-insert-multiple-values-at-a-time-by-quot-insert-into/m-p/169401#M43801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please do me a favour , I am trying to insert multiple rows in the table in db2 database via sas but i am not able to insert multiple rows at a time.&lt;/P&gt;&lt;P&gt;when i use&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;insert into table_name (a,b,c)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;values('a',2,3);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;it works but when i use &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;insert into table_name&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;select a,b,c &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;from table2.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;then it is not working.&lt;/P&gt;&lt;P&gt;i am getting the error.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I am using SAS EG 6.0.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 May 2014 17:45:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Not-able-to-insert-multiple-values-at-a-time-by-quot-insert-into/m-p/169401#M43801</guid>
      <dc:creator>Arjun_Singh</dc:creator>
      <dc:date>2014-05-22T17:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to insert multiple values at a time by "insert into" in proc sql.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Not-able-to-insert-multiple-values-at-a-time-by-quot-insert-into/m-p/169402#M43802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think your syntax might be wrong:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;insert into table_name(a,b,c)&lt;/P&gt;&lt;P&gt;select a,b,c from table2;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 May 2014 18:26:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Not-able-to-insert-multiple-values-at-a-time-by-quot-insert-into/m-p/169402#M43802</guid>
      <dc:creator>DBailey</dc:creator>
      <dc:date>2014-05-22T18:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to insert multiple values at a time by "insert into" in proc sql.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Not-able-to-insert-multiple-values-at-a-time-by-quot-insert-into/m-p/169403#M43803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;H1 class="fn n" style="font-weight: normal; font-size: 22px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #f6f6f6;"&gt;Hi DBailey,&lt;/H1&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the same syntax as you wrote(correct one) but i am getting the error when i am trying to insert multiple rows at a time but not for a single row.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2014 17:09:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Not-able-to-insert-multiple-values-at-a-time-by-quot-insert-into/m-p/169403#M43803</guid>
      <dc:creator>Arjun_Singh</dc:creator>
      <dc:date>2014-05-23T17:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to insert multiple values at a time by "insert into" in proc sql.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Not-able-to-insert-multiple-values-at-a-time-by-quot-insert-into/m-p/169404#M43804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your table structures are the same, have you tried something like the following (untested):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em; font-family: 'courier new', courier;"&gt;insert into want&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;select * from have; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amir.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2014 17:20:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Not-able-to-insert-multiple-values-at-a-time-by-quot-insert-into/m-p/169404#M43804</guid>
      <dc:creator>Amir</dc:creator>
      <dc:date>2014-05-23T17:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to insert multiple values at a time by "insert into" in proc sql.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Not-able-to-insert-multiple-values-at-a-time-by-quot-insert-into/m-p/169405#M43805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try adding the clause &lt;STRONG&gt;values&lt;/STRONG&gt; before &lt;STRONG&gt;select&lt;/STRONG&gt; clause&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2014 17:23:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Not-able-to-insert-multiple-values-at-a-time-by-quot-insert-into/m-p/169405#M43805</guid>
      <dc:creator>JVarghese</dc:creator>
      <dc:date>2014-05-23T17:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to insert multiple values at a time by "insert into" in proc sql.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Not-able-to-insert-multiple-values-at-a-time-by-quot-insert-into/m-p/169406#M43806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems variables in table_name and table2 have different attributes. Try Proc contents to make sure both tables have same type of variables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2014 18:28:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Not-able-to-insert-multiple-values-at-a-time-by-quot-insert-into/m-p/169406#M43806</guid>
      <dc:creator>stat_sas</dc:creator>
      <dc:date>2014-05-23T18:28:44Z</dc:date>
    </item>
  </channel>
</rss>

