<?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 do you select  number of variables in proc sql in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/how-do-you-select-number-of-variables-in-proc-sql/m-p/74453#M21607</link>
    <description>I have col1 to col12 in my dataset and i want to select all of these variables in the proc sql step, is it possible to do it&lt;BR /&gt;
&lt;BR /&gt;
for example if it was a datastep i would do keep col1-col12,&lt;BR /&gt;
&lt;BR /&gt;
 proc sql;&lt;BR /&gt;
   create table x as &lt;BR /&gt;
   select col1, col2, col3, col4, col5, col6, col7, col8, col9, col10, col11, col12, y.*&lt;BR /&gt;
   from x, y&lt;BR /&gt;
  on x.pt=y.pt etc etc&lt;BR /&gt;
quit;&lt;BR /&gt;
&lt;BR /&gt;
Is there a way to include col1 to col12 in a simpler way&lt;BR /&gt;
&lt;BR /&gt;
Thank you very much!</description>
    <pubDate>Fri, 09 Apr 2010 02:30:00 GMT</pubDate>
    <dc:creator>rajm895</dc:creator>
    <dc:date>2010-04-09T02:30:00Z</dc:date>
    <item>
      <title>how do you select  number of variables in proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-do-you-select-number-of-variables-in-proc-sql/m-p/74453#M21607</link>
      <description>I have col1 to col12 in my dataset and i want to select all of these variables in the proc sql step, is it possible to do it&lt;BR /&gt;
&lt;BR /&gt;
for example if it was a datastep i would do keep col1-col12,&lt;BR /&gt;
&lt;BR /&gt;
 proc sql;&lt;BR /&gt;
   create table x as &lt;BR /&gt;
   select col1, col2, col3, col4, col5, col6, col7, col8, col9, col10, col11, col12, y.*&lt;BR /&gt;
   from x, y&lt;BR /&gt;
  on x.pt=y.pt etc etc&lt;BR /&gt;
quit;&lt;BR /&gt;
&lt;BR /&gt;
Is there a way to include col1 to col12 in a simpler way&lt;BR /&gt;
&lt;BR /&gt;
Thank you very much!</description>
      <pubDate>Fri, 09 Apr 2010 02:30:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-do-you-select-number-of-variables-in-proc-sql/m-p/74453#M21607</guid>
      <dc:creator>rajm895</dc:creator>
      <dc:date>2010-04-09T02:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: how do you select  number of variables in proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-do-you-select-number-of-variables-in-proc-sql/m-p/74454#M21608</link>
      <description>if a data step does the job better, why use sql?</description>
      <pubDate>Fri, 09 Apr 2010 09:02:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-do-you-select-number-of-variables-in-proc-sql/m-p/74454#M21608</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2010-04-09T09:02:38Z</dc:date>
    </item>
  </channel>
</rss>

