<?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 Multiple select/sql statements in PROC SQL in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Multiple-select-sql-statements-in-PROC-SQL/m-p/562852#M10798</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm fairly new to SAS and was wondering if I can have multiple "queries"/sql statements in proc sql.&amp;nbsp; Or maybe I just don't know the primary use of proc sql.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically, I wanted to know if I need to create multiple proc sqls or do all sql statements in proc sql.&amp;nbsp; For example, can I have any number of combination of create table/select statements inside one proc sql?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Fri, 31 May 2019 14:16:39 GMT</pubDate>
    <dc:creator>jffeudo86</dc:creator>
    <dc:date>2019-05-31T14:16:39Z</dc:date>
    <item>
      <title>Multiple select/sql statements in PROC SQL</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Multiple-select-sql-statements-in-PROC-SQL/m-p/562852#M10798</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm fairly new to SAS and was wondering if I can have multiple "queries"/sql statements in proc sql.&amp;nbsp; Or maybe I just don't know the primary use of proc sql.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically, I wanted to know if I need to create multiple proc sqls or do all sql statements in proc sql.&amp;nbsp; For example, can I have any number of combination of create table/select statements inside one proc sql?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2019 14:16:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Multiple-select-sql-statements-in-PROC-SQL/m-p/562852#M10798</guid>
      <dc:creator>jffeudo86</dc:creator>
      <dc:date>2019-05-31T14:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple select/sql statements in PROC SQL</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Multiple-select-sql-statements-in-PROC-SQL/m-p/562855#M10799</link>
      <description>&lt;P&gt;You can certainly have multiple queries in one PROC SQL&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
    create table a as select * from sashelp.class where age=14;
    create table b as select make,model,type,origin from sashelp.cars where
          mspr&amp;gt;40000 and horsepower&amp;gt;200;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 31 May 2019 14:19:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Multiple-select-sql-statements-in-PROC-SQL/m-p/562855#M10799</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-05-31T14:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple select/sql statements in PROC SQL</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Multiple-select-sql-statements-in-PROC-SQL/m-p/562857#M10801</link>
      <description>&lt;P&gt;Yes, you can have multiple queries in one SQL Procedure&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
   create table class1 as
      select * from sashelp.class;
   create table class2 as
      select * from sashelp.class;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 31 May 2019 14:20:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Multiple-select-sql-statements-in-PROC-SQL/m-p/562857#M10801</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-05-31T14:20:17Z</dc:date>
    </item>
  </channel>
</rss>

