<?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: Ordering without sorting in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Ordering-without-sorting/m-p/370537#M88498</link>
    <description>&lt;P&gt;I just wanted to move 1st obs to the last obs. It's working as i expected from the below solution provided by &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4954"&gt;@Astounding&lt;/a&gt;. Thanks for your efforts too.&lt;/P&gt;</description>
    <pubDate>Mon, 26 Jun 2017 13:23:49 GMT</pubDate>
    <dc:creator>Data_User</dc:creator>
    <dc:date>2017-06-26T13:23:49Z</dc:date>
    <item>
      <title>Ordering without sorting</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Ordering-without-sorting/m-p/370513#M88488</link>
      <description>&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;Hi,&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;Is there a way to move the observations as shown below without using the sort option?&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; dataset;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;length&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; Segment $&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;13&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;input&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; Segment var1 var2 var3;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;datalines&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;%_of_missing 19 23 12&lt;/P&gt;&lt;P&gt;0 32 43 23&lt;/P&gt;&lt;P&gt;1-10 23 534 343&lt;/P&gt;&lt;P&gt;11-20 434 432 42&lt;/P&gt;&lt;P&gt;21-30 23 123 543&lt;/P&gt;&lt;P&gt;31-40 443 2342 4234&lt;/P&gt;&lt;P&gt;41-50 32 25243 4523&lt;/P&gt;&lt;P&gt;51-100 324 5234 324&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; want;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;length&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; Segment $&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;13&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;input&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; Segment var1 var2 var3;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;datalines&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;0 32 43 23&lt;/P&gt;&lt;P&gt;1-10 23 534 343&lt;/P&gt;&lt;P&gt;11-20 434 432 42&lt;/P&gt;&lt;P&gt;21-30 23 123 543&lt;/P&gt;&lt;P&gt;31-40 443 2342 4234&lt;/P&gt;&lt;P&gt;41-50 32 25243 4523&lt;/P&gt;&lt;P&gt;51-100 324 5234 324&lt;/P&gt;&lt;P&gt;%_of_missing 19 23 12&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;print&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=dataset;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;print&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=want;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2017 12:45:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Ordering-without-sorting/m-p/370513#M88488</guid>
      <dc:creator>Data_User</dc:creator>
      <dc:date>2017-06-26T12:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: Ordering without sorting</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Ordering-without-sorting/m-p/370516#M88490</link>
      <description>&lt;P&gt;Unless I am missing something, your code does exactly what you asked for, it moves the line that begins %_of_missing to the bottom of the data set.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2017 12:49:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Ordering-without-sorting/m-p/370516#M88490</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2017-06-26T12:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: Ordering without sorting</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Ordering-without-sorting/m-p/370517#M88491</link>
      <description>&lt;P&gt;- how do you identify the observation that has to be moved?&lt;/P&gt;
&lt;P&gt;- how do you determine the position in which the observation should end up (beginning, end, after another defined obs, a given obs number, ...)?&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2017 12:53:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Ordering-without-sorting/m-p/370517#M88491</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-06-26T12:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: Ordering without sorting</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Ordering-without-sorting/m-p/370523#M88493</link>
      <description>&lt;P&gt;Given that you just want to move the first observation to the end of the data set, this should work:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data want;&lt;/P&gt;
&lt;P&gt;set have (firstobs=2) have (obs=1);&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2017 13:06:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Ordering-without-sorting/m-p/370523#M88493</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2017-06-26T13:06:02Z</dc:date>
    </item>
    <item>
      <title>Re: Ordering without sorting</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Ordering-without-sorting/m-p/370535#M88496</link>
      <description>&lt;P&gt;Awesome, this is what I wanted. Thanks a lot for your contribution.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2017 13:22:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Ordering-without-sorting/m-p/370535#M88496</guid>
      <dc:creator>Data_User</dc:creator>
      <dc:date>2017-06-26T13:22:32Z</dc:date>
    </item>
    <item>
      <title>Re: Ordering without sorting</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Ordering-without-sorting/m-p/370537#M88498</link>
      <description>&lt;P&gt;I just wanted to move 1st obs to the last obs. It's working as i expected from the below solution provided by &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4954"&gt;@Astounding&lt;/a&gt;. Thanks for your efforts too.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2017 13:23:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Ordering-without-sorting/m-p/370537#M88498</guid>
      <dc:creator>Data_User</dc:creator>
      <dc:date>2017-06-26T13:23:49Z</dc:date>
    </item>
  </channel>
</rss>

