<?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: SAS Warning Message in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Warning-Message/m-p/276960#M19158</link>
    <description>It's pretty clear.&lt;BR /&gt;You have yy and code in your select clause, not cc.&lt;BR /&gt;Order by is for ouput, not input processing.</description>
    <pubDate>Mon, 13 Jun 2016 15:23:48 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2016-06-13T15:23:48Z</dc:date>
    <item>
      <title>SAS Warning Message</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Warning-Message/m-p/276954#M19157</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am using&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sql;&lt;/P&gt;
&lt;P&gt;create table&amp;nbsp;pp as&lt;/P&gt;
&lt;P&gt;&amp;nbsp; select substr(cc,2,2) as yy,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; code&lt;/P&gt;
&lt;P&gt;from bb&lt;/P&gt;
&lt;P&gt;order by code ,cc&lt;/P&gt;
&lt;P&gt;;&lt;/P&gt;
&lt;P&gt;quit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And i get below warning what should i do if i dont want to get this message . Can anyone help&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;NOTE: The query as specified involves ordering by an item that doesn't appear in its SELECT clause.&lt;BR /&gt;ODBC: AUTOCOMMIT is NO for connection 6&lt;BR /&gt;SAS_SQL:&amp;nbsp; Unable to convert the query to a DBMS specific SQL statement due to an error. &lt;BR /&gt;ACCESS ENGINE:&amp;nbsp; SQL statement was not passed to the DBMS, SAS will do the processing. &lt;BR /&gt;SAS_SQL:&amp;nbsp; Unable to convert the query to a DBMS specific SQL statement due to an error. &lt;BR /&gt;ACCESS ENGINE:&amp;nbsp; SQL statement was not passed to the DBMS, SAS will do the processing. &lt;BR /&gt;ODBC: AUTOCOMMIT turned ON for connection id 6&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jun 2016 15:03:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Warning-Message/m-p/276954#M19157</guid>
      <dc:creator>chennupriya</dc:creator>
      <dc:date>2016-06-13T15:03:05Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Warning Message</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Warning-Message/m-p/276960#M19158</link>
      <description>It's pretty clear.&lt;BR /&gt;You have yy and code in your select clause, not cc.&lt;BR /&gt;Order by is for ouput, not input processing.</description>
      <pubDate>Mon, 13 Jun 2016 15:23:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Warning-Message/m-p/276960#M19158</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-06-13T15:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Warning Message</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Warning-Message/m-p/276963#M19159</link>
      <description>&lt;P&gt;Can you provide your full code, the error is telling you your code will be executed in SAS rather than in the database, which indicates at some point you are using a database - MS Access possibly. &amp;nbsp;MS Access does not support a substr function.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also the note you get is because CC is not a variable in the select - it is used, but not selected.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jun 2016 15:25:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Warning-Message/m-p/276963#M19159</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-06-13T15:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Warning Message</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Warning-Message/m-p/276966#M19160</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;
&lt;P&gt;So if i do&lt;/P&gt;
&lt;P&gt;order by code ,yy then i dont get the error&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but from table has cc variable in it&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jun 2016 15:34:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Warning-Message/m-p/276966#M19160</guid>
      <dc:creator>chennupriya</dc:creator>
      <dc:date>2016-06-13T15:34:33Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Warning Message</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Warning-Message/m-p/276971#M19161</link>
      <description>&lt;P&gt;Order by operates on the end result of the statements - i.e. after the select anf from have operated, at which point the available columns are YY and CODE.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jun 2016 15:44:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Warning-Message/m-p/276971#M19161</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-06-13T15:44:07Z</dc:date>
    </item>
  </channel>
</rss>

