<?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: Sorting Error in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Sorting-Error/m-p/627384#M185199</link>
    <description>&lt;P&gt;Do I put lowest to highest instead of descending?&lt;/P&gt;</description>
    <pubDate>Wed, 26 Feb 2020 02:48:16 GMT</pubDate>
    <dc:creator>harveysarah0</dc:creator>
    <dc:date>2020-02-26T02:48:16Z</dc:date>
    <item>
      <title>Sorting Error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sorting-Error/m-p/627380#M185196</link>
      <description>&lt;P&gt;76 PROC SORT Bbq;&lt;BR /&gt;---&lt;BR /&gt;22&lt;BR /&gt;202&lt;BR /&gt;ERROR 22-322: Syntax error, expecting one of the following: ;, ASCII, BUFFNO, DANISH, DATA, DATECOPY,&lt;BR /&gt;DETAILS, DIAG, DUPOUT, EBCDIC, EQUALS, FINNISH, FORCE, IN, ISA, L, LEAVE, LIST,&lt;BR /&gt;MESSAGE, MSG, NATIONAL, NODUP, NODUPKEY, NODUPKEYS, NODUPLICATE, NODUPLICATES,&lt;BR /&gt;NODUPREC, NODUPRECS, NODUPS, NOEQUALS, NORWEGIAN, NOTHREADS, NOUNIKEY, NOUNIKEYS,&lt;BR /&gt;NOUNIQUEKEY, NOUNIQUEKEYS, NOUNIQUEREC, NOUNIQUERECS, NOUNIREC, NOUNIRECS, OSA, OUT,&lt;BR /&gt;OVERWRITE, PAGESIZE, PRESORTED, PSIZE, REVERSE, SIZE, SORTSEQ, SORTSIZE, SORTWKNO,&lt;BR /&gt;SWEDISH, T, TAGSORT, TECH, TECHNIQUE, TESTHSI, THREADS, UNIOUT, UNIQUEOUT, WKNO,&lt;BR /&gt;WORKNO.&lt;BR /&gt;ERROR 202-322: The option or parameter is not recognized and will be ignored.&lt;BR /&gt;77 By descending Price&lt;BR /&gt;78 RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This comes up when I am trying to answer this question.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sort your merged SAS data set by price of a quarter rack of ribs, from cheapest to&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;most expensive. Print the resulting table and present it (properly titled) in your&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;solutions.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the code I am trying to input:&lt;/P&gt;&lt;P&gt;PROC SORT Bbq;&lt;BR /&gt;By descending Price&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2020 02:22:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sorting-Error/m-p/627380#M185196</guid>
      <dc:creator>harveysarah0</dc:creator>
      <dc:date>2020-02-26T02:22:11Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting Error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sorting-Error/m-p/627381#M185197</link>
      <description>&lt;P&gt;Look at the code you've posted in your other post &lt;A href="https://communities.sas.com/t5/SAS-Programming/Sorting-data/m-p/627375#M185192" target="_self"&gt;here&lt;/A&gt;. That should work.&lt;/P&gt;
&lt;P&gt;Valid syntax would be:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;PROC SORT &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;data=&lt;/STRONG&gt;&lt;/FONT&gt;Bbq;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;By descending Price;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RUN;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2020 02:30:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sorting-Error/m-p/627381#M185197</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2020-02-26T02:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting Error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sorting-Error/m-p/627382#M185198</link>
      <description>&lt;P&gt;One more change to make:&amp;nbsp; take out the word DESCENDING.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The problem asks for cheapest to most expensive, which would require lowest to highest price.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You won't get an error by adding DESCENDING, but you won't get the right result.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2020 02:37:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sorting-Error/m-p/627382#M185198</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2020-02-26T02:37:51Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting Error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sorting-Error/m-p/627384#M185199</link>
      <description>&lt;P&gt;Do I put lowest to highest instead of descending?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2020 02:48:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sorting-Error/m-p/627384#M185199</guid>
      <dc:creator>harveysarah0</dc:creator>
      <dc:date>2020-02-26T02:48:16Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting Error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sorting-Error/m-p/627387#M185201</link>
      <description>&lt;P&gt;No. Just remove descending from BY statement. It will automatically sort from lowest to highest&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2020 03:04:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sorting-Error/m-p/627387#M185201</guid>
      <dc:creator>V_27</dc:creator>
      <dc:date>2020-02-26T03:04:34Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting Error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sorting-Error/m-p/627435#M185230</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/313820"&gt;@harveysarah0&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is no need to specify ascending, as it is the default sorting:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data=Bbq;
	by Price;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 26 Feb 2020 08:30:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sorting-Error/m-p/627435#M185230</guid>
      <dc:creator>ed_sas_member</dc:creator>
      <dc:date>2020-02-26T08:30:14Z</dc:date>
    </item>
  </channel>
</rss>

