<?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 sql and the select into question in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-sql-and-the-select-into-question/m-p/298748#M62873</link>
    <description>&lt;P&gt;No, that's not SAS SQL.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In SAS you use a CREATE TABLE statement instead.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table uompc.SAStoVGroups as
select ..
from
...
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Probably easiest to scan through the examples:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/sqlproc/69049/HTML/default/viewer.htm#n1ncn0pznd8wrln1tnp3xdxjz9xz.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/sqlproc/69049/HTML/default/viewer.htm#n1ncn0pznd8wrln1tnp3xdxjz9xz.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 15 Sep 2016 18:24:26 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2016-09-15T18:24:26Z</dc:date>
    <item>
      <title>proc sql and the select into question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-sql-and-the-select-into-question/m-p/298743#M62871</link>
      <description>&lt;P&gt;I have this proc sql below ...can you not use the select into statement? the error I get is below that&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sql;&lt;BR /&gt;select memname as sas,name as vgroups into uompc.SAStoVGroups from work.vgroups &lt;BR /&gt;quit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;3042 proc sql;&lt;BR /&gt;3043 select memname as sas,name as vgroups into uompc.SAStoVGroups from work.vgroups&lt;BR /&gt; -----&lt;BR /&gt; 79&lt;BR /&gt; 76&lt;BR /&gt;ERROR 79-322: Expecting a :.&lt;/P&gt;
&lt;P&gt;ERROR 76-322: Syntax error, statement will be ignored.&lt;/P&gt;
&lt;P&gt;3044 quit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2016 18:16:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-sql-and-the-select-into-question/m-p/298743#M62871</guid>
      <dc:creator>robm</dc:creator>
      <dc:date>2016-09-15T18:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: proc sql and the select into question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-sql-and-the-select-into-question/m-p/298748#M62873</link>
      <description>&lt;P&gt;No, that's not SAS SQL.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In SAS you use a CREATE TABLE statement instead.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table uompc.SAStoVGroups as
select ..
from
...
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Probably easiest to scan through the examples:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/sqlproc/69049/HTML/default/viewer.htm#n1ncn0pznd8wrln1tnp3xdxjz9xz.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/sqlproc/69049/HTML/default/viewer.htm#n1ncn0pznd8wrln1tnp3xdxjz9xz.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2016 18:24:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-sql-and-the-select-into-question/m-p/298748#M62873</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-09-15T18:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: proc sql and the select into question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-sql-and-the-select-into-question/m-p/298767#M62881</link>
      <description>&lt;P&gt;Use the documented syntax. SELECT INTO is for giving values to SAS macro variables.INSERT INTO is for adding observations to an existing table. To create a table, use CREATE TABLE:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table uompc.SAStoVGroups as
select 
	memname as sas,
	name as vgroups 
from work.vgroups;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 15 Sep 2016 19:17:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-sql-and-the-select-into-question/m-p/298767#M62881</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-09-15T19:17:09Z</dc:date>
    </item>
  </channel>
</rss>

