<?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: reverse order in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/reverse-order/m-p/684131#M207286</link>
    <description>in class dataset first 10 obs should be in reverse order remaing same</description>
    <pubDate>Wed, 16 Sep 2020 05:44:50 GMT</pubDate>
    <dc:creator>BrahmanandaRao</dc:creator>
    <dc:date>2020-09-16T05:44:50Z</dc:date>
    <item>
      <title>reverse order</title>
      <link>https://communities.sas.com/t5/SAS-Programming/reverse-order/m-p/684122#M207284</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi Guys&lt;/P&gt;&lt;P&gt;i want reverse order in sashelp.class&amp;nbsp;&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Name&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;John&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Jeffrey&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Janet&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Jane&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;James&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Henry&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Carol&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Barbara&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Alice&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Alfred&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Joyce&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Judy&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Louise&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Mary&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Philip&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Robert&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Ronald&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Thomas&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;William&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Wed, 16 Sep 2020 05:15:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/reverse-order/m-p/684122#M207284</guid>
      <dc:creator>BrahmanandaRao</dc:creator>
      <dc:date>2020-09-16T05:15:07Z</dc:date>
    </item>
    <item>
      <title>Re: reverse order</title>
      <link>https://communities.sas.com/t5/SAS-Programming/reverse-order/m-p/684125#M207285</link>
      <description>&lt;P&gt;I can see no order here; please explain the rule for getting this sequence.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Sep 2020 05:29:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/reverse-order/m-p/684125#M207285</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-09-16T05:29:44Z</dc:date>
    </item>
    <item>
      <title>Re: reverse order</title>
      <link>https://communities.sas.com/t5/SAS-Programming/reverse-order/m-p/684131#M207286</link>
      <description>in class dataset first 10 obs should be in reverse order remaing same</description>
      <pubDate>Wed, 16 Sep 2020 05:44:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/reverse-order/m-p/684131#M207286</guid>
      <dc:creator>BrahmanandaRao</dc:creator>
      <dc:date>2020-09-16T05:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: reverse order</title>
      <link>https://communities.sas.com/t5/SAS-Programming/reverse-order/m-p/684137#M207290</link>
      <description>&lt;P&gt;Sort the first 10 observations (OBS=10) in DESCENDING order to your want dataset, then append the rest (FIRSTOBS=11).&lt;/P&gt;</description>
      <pubDate>Wed, 16 Sep 2020 06:47:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/reverse-order/m-p/684137#M207290</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-09-16T06:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: reverse order</title>
      <link>https://communities.sas.com/t5/SAS-Programming/reverse-order/m-p/684141#M207294</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;try like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
  do point = 10 to 1 by -1, 11 to nobs;
    set sashelp.class nobs=nobs point=point;
    output;
  end;
  stop;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;or like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want2;
  do point = 10 to 1 by -1;
    set sashelp.class nobs=nobs point=point;
    output;
  end;

  do until(eof);
    set sashelp.class(firstobs=11) end=eof;
    output;
  end;

  stop;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;or (like&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;suggested) like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want3;
  do point = 10 to 1 by -1;
    set sashelp.class nobs=nobs point=point;
    output;
  end;
  stop;
run;

proc append base = want3 data = sashelp.class(firstobs=11);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Mind that it is a &lt;EM&gt;reversed order of observations&lt;/EM&gt;&amp;nbsp;and not a reversed sort by name.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All the best&lt;/P&gt;
&lt;P&gt;Bart&lt;/P&gt;</description>
      <pubDate>Wed, 16 Sep 2020 07:02:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/reverse-order/m-p/684141#M207294</guid>
      <dc:creator>yabwon</dc:creator>
      <dc:date>2020-09-16T07:02:31Z</dc:date>
    </item>
  </channel>
</rss>

