<?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 PROC SQL COLUMN SEQUENCE in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-COLUMN-SEQUENCE/m-p/93270#M26510</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 we have columns which are in sequence then how can we use it in select statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i have id1-id24 then in proc sql how to use the sql statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql noprint;&lt;/P&gt;&lt;P&gt;create table test as&lt;/P&gt;&lt;P&gt;select id1-id24&lt;/P&gt;&lt;P&gt;from dummy;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to use some thing like that.Can any one let me know how can i use that in sql select statement.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Dec 2012 03:45:06 GMT</pubDate>
    <dc:creator>JasonNC</dc:creator>
    <dc:date>2012-12-07T03:45:06Z</dc:date>
    <item>
      <title>PROC SQL COLUMN SEQUENCE</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-COLUMN-SEQUENCE/m-p/93270#M26510</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 we have columns which are in sequence then how can we use it in select statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i have id1-id24 then in proc sql how to use the sql statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql noprint;&lt;/P&gt;&lt;P&gt;create table test as&lt;/P&gt;&lt;P&gt;select id1-id24&lt;/P&gt;&lt;P&gt;from dummy;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to use some thing like that.Can any one let me know how can i use that in sql select statement.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Dec 2012 03:45:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-COLUMN-SEQUENCE/m-p/93270#M26510</guid>
      <dc:creator>JasonNC</dc:creator>
      <dc:date>2012-12-07T03:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL COLUMN SEQUENCE</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-COLUMN-SEQUENCE/m-p/93271#M26511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;proc sql noprint;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;create table test as&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;select *&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;from dummy &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt; (keep=id1-id24)&lt;/SPAN&gt;;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Dec 2012 04:51:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-COLUMN-SEQUENCE/m-p/93271#M26511</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-12-07T04:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL COLUMN SEQUENCE</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-COLUMN-SEQUENCE/m-p/93272#M26512</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;I am also having an inner join with other table and i am picking some other values as well in this table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;instead of writing dumm1,dumm2,dumm3 i want to write like dumm1-dumm24 in sql.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql&lt;/P&gt;&lt;P&gt;create table test as&lt;/P&gt;&lt;P&gt;select dumm1.info,dummy1.pro&lt;/P&gt;&lt;P&gt;dumm2.peter,dumm2.marta,dumm1-dumm24&lt;/P&gt;&lt;P&gt;from &lt;BR /&gt;dummy1 innre jon dummy2&lt;/P&gt;&lt;P&gt;on (dumm1=dumm2);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Dec 2012 05:06:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-COLUMN-SEQUENCE/m-p/93272#M26512</guid>
      <dc:creator>JasonNC</dc:creator>
      <dc:date>2012-12-07T05:06:37Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL COLUMN SEQUENCE</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-COLUMN-SEQUENCE/m-p/93273#M26513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your proc sql statement has too many errors and ambiguities to show a correct example, but you can use select * and then, on the 2nd from the bottom line, add (keep=) statements after each filename.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Dec 2012 14:08:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-COLUMN-SEQUENCE/m-p/93273#M26513</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-12-07T14:08:53Z</dc:date>
    </item>
  </channel>
</rss>

