<?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: how do I use proc sql to create smaller table from a large table in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/how-do-I-use-proc-sql-to-create-smaller-table-from-a-large-table/m-p/295230#M60118</link>
    <description>&lt;P&gt;Subseting a small table from a large one:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Proc sql;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;create table SMALL_TABLE as select&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var1, var2, ...varn &amp;nbsp; &amp;nbsp;/* list of variables seperated by comma */&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;from LARGE_TABLE&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;WHERE &amp;nbsp; ... &amp;nbsp; &amp;nbsp; /* write here your conditions, like: &amp;nbsp;var1=4 and ... or .... */&lt;/P&gt;&lt;P&gt;&amp;nbsp; ; quit;&lt;/P&gt;</description>
    <pubDate>Tue, 30 Aug 2016 15:52:59 GMT</pubDate>
    <dc:creator>Shmuel</dc:creator>
    <dc:date>2016-08-30T15:52:59Z</dc:date>
    <item>
      <title>how do I use proc sql to create smaller table from a large table</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-do-I-use-proc-sql-to-create-smaller-table-from-a-large-table/m-p/295226#M60115</link>
      <description>&lt;P&gt;I'd like to use proc sql to extract selected rows and selected columns from a large table, "largeTable. My idea is to use proc sql's describe table for the largeTable, edit the "create table ..." results from largeTable and create a template for "smallTable," (smallTable will have only a few columns) and somehow (here's my question) populate smallTable's columns with filtered rows (say, someNumericField = 4) from largeTable. Can someone please explain how to do this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks much, Bruce&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using SAS 9.3&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2016 15:43:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-do-I-use-proc-sql-to-create-smaller-table-from-a-large-table/m-p/295226#M60115</guid>
      <dc:creator>brucehughw</dc:creator>
      <dc:date>2016-08-30T15:43:59Z</dc:date>
    </item>
    <item>
      <title>Re: how do I use proc sql to create smaller table from a large table</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-do-I-use-proc-sql-to-create-smaller-table-from-a-large-table/m-p/295230#M60118</link>
      <description>&lt;P&gt;Subseting a small table from a large one:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Proc sql;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;create table SMALL_TABLE as select&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var1, var2, ...varn &amp;nbsp; &amp;nbsp;/* list of variables seperated by comma */&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;from LARGE_TABLE&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;WHERE &amp;nbsp; ... &amp;nbsp; &amp;nbsp; /* write here your conditions, like: &amp;nbsp;var1=4 and ... or .... */&lt;/P&gt;&lt;P&gt;&amp;nbsp; ; quit;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2016 15:52:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-do-I-use-proc-sql-to-create-smaller-table-from-a-large-table/m-p/295230#M60118</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2016-08-30T15:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: how do I use proc sql to create smaller table from a large table</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-do-I-use-proc-sql-to-create-smaller-table-from-a-large-table/m-p/295252#M60119</link>
      <description>&lt;P&gt;Thanks very much! I assume that the var1, var2, ..., varn code in the select statement can include labels and formats, correct?&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2016 16:40:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-do-I-use-proc-sql-to-create-smaller-table-from-a-large-table/m-p/295252#M60119</guid>
      <dc:creator>brucehughw</dc:creator>
      <dc:date>2016-08-30T16:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: how do I use proc sql to create smaller table from a large table</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-do-I-use-proc-sql-to-create-smaller-table-from-a-large-table/m-p/295253#M60120</link>
      <description>&lt;P&gt;When you create a new SAS dataset from another SAS table,&lt;/P&gt;&lt;P&gt;all attributes of the varibales are inherited, including length, labels, formats, type etc. - from the input table&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2016 16:48:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-do-I-use-proc-sql-to-create-smaller-table-from-a-large-table/m-p/295253#M60120</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2016-08-30T16:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: how do I use proc sql to create smaller table from a large table</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-do-I-use-proc-sql-to-create-smaller-table-from-a-large-table/m-p/295257#M60121</link>
      <description>&lt;P&gt;Thanks very much.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2016 17:08:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-do-I-use-proc-sql-to-create-smaller-table-from-a-large-table/m-p/295257#M60121</guid>
      <dc:creator>brucehughw</dc:creator>
      <dc:date>2016-08-30T17:08:53Z</dc:date>
    </item>
  </channel>
</rss>

