<?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: sort a data set while preserving the audit trail in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/sort-a-data-set-while-preserving-the-audit-trail/m-p/649361#M194659</link>
    <description>&lt;P&gt;I do not think there is. But you could try putting an index on the table instead, e.g.:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* This does not work. Audit trail will be dropped:
proc sort data=audited;
  by ID Date;
run;
*/

proc sql;
  create index idx on audited(ID,Date);
quit;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You should then be able to read the data set BY ID DATE. It may run more slowly, but if the table is not too big, that should not be a problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS: Not tested, just a suggestion to try.&lt;/P&gt;</description>
    <pubDate>Wed, 20 May 2020 19:37:54 GMT</pubDate>
    <dc:creator>s_lassen</dc:creator>
    <dc:date>2020-05-20T19:37:54Z</dc:date>
    <item>
      <title>sort a data set while preserving the audit trail</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sort-a-data-set-while-preserving-the-audit-trail/m-p/649299#M194633</link>
      <description>&lt;P&gt;Dear SAS-Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is there a way to sort a data set and preserve the audit trail?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Proc Sort replaces the data set and does not preserve the audit trail.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2020 16:46:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sort-a-data-set-while-preserving-the-audit-trail/m-p/649299#M194633</guid>
      <dc:creator>Sasuser52</dc:creator>
      <dc:date>2020-05-20T16:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: sort a data set while preserving the audit trail</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sort-a-data-set-while-preserving-the-audit-trail/m-p/649361#M194659</link>
      <description>&lt;P&gt;I do not think there is. But you could try putting an index on the table instead, e.g.:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* This does not work. Audit trail will be dropped:
proc sort data=audited;
  by ID Date;
run;
*/

proc sql;
  create index idx on audited(ID,Date);
quit;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You should then be able to read the data set BY ID DATE. It may run more slowly, but if the table is not too big, that should not be a problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS: Not tested, just a suggestion to try.&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2020 19:37:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sort-a-data-set-while-preserving-the-audit-trail/m-p/649361#M194659</guid>
      <dc:creator>s_lassen</dc:creator>
      <dc:date>2020-05-20T19:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: sort a data set while preserving the audit trail</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sort-a-data-set-while-preserving-the-audit-trail/m-p/649557#M194759</link>
      <description>&lt;P&gt;Thank you for your answer &lt;span class="lia-unicode-emoji" title=":strawberry:"&gt;🍓&lt;/span&gt;. Your answer might help somebody, but for me this is not what I am looking for.&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2020 13:06:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sort-a-data-set-while-preserving-the-audit-trail/m-p/649557#M194759</guid>
      <dc:creator>Sasuser52</dc:creator>
      <dc:date>2020-05-21T13:06:17Z</dc:date>
    </item>
  </channel>
</rss>

