<?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 How to  reset to original order of dataset after sorting? in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-reset-to-original-order-of-dataset-after-sorting/m-p/626842#M18812</link>
    <description>&lt;P&gt;I would like to know&amp;nbsp; , how to get back to original order of a dataset after sorting by certain variable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your solutions are highly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Mon, 24 Feb 2020 12:09:26 GMT</pubDate>
    <dc:creator>sri1</dc:creator>
    <dc:date>2020-02-24T12:09:26Z</dc:date>
    <item>
      <title>How to  reset to original order of dataset after sorting?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-reset-to-original-order-of-dataset-after-sorting/m-p/626842#M18812</link>
      <description>&lt;P&gt;I would like to know&amp;nbsp; , how to get back to original order of a dataset after sorting by certain variable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your solutions are highly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2020 12:09:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-reset-to-original-order-of-dataset-after-sorting/m-p/626842#M18812</guid>
      <dc:creator>sri1</dc:creator>
      <dc:date>2020-02-24T12:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to  reset to original order of dataset after sorting?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-reset-to-original-order-of-dataset-after-sorting/m-p/626843#M18813</link>
      <description>&lt;P&gt;Why do you want to do that? Is this a general interest or an actual problem?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your original order matters, you would create a sorted copy and word with that ..&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2020 12:22:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-reset-to-original-order-of-dataset-after-sorting/m-p/626843#M18813</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2020-02-24T12:22:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to  reset to original order of dataset after sorting?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-reset-to-original-order-of-dataset-after-sorting/m-p/626849#M18814</link>
      <description>&lt;P&gt;One solution might be to store the original order in a variable:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data x;
  set y;

  attrib n length=8;

  n = _N_;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then, later, after sorting:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data=x;
  by n;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 24 Feb 2020 12:57:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-reset-to-original-order-of-dataset-after-sorting/m-p/626849#M18814</guid>
      <dc:creator>nicobuettner</dc:creator>
      <dc:date>2020-02-24T12:57:09Z</dc:date>
    </item>
  </channel>
</rss>

