<?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: Rearrranging variables in a data set while preserving the audit trail in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Rearrranging-variables-in-a-data-set-while-preserving-the-audit/m-p/649308#M194636</link>
    <description>&lt;P&gt;Thank you for your answer &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; . I know that the problem can be solved to some extent by using a view (sorry that I did not mention them). But, I hope there is a way to rearrange variables in the data set without losing the audit trail. It would be ok, to temporarily suspend the audit trail for the rearrangement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 20 May 2020 17:12:40 GMT</pubDate>
    <dc:creator>Sasuser52</dc:creator>
    <dc:date>2020-05-20T17:12:40Z</dc:date>
    <item>
      <title>Rearrranging variables in a data set while preserving the audit trail</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rearrranging-variables-in-a-data-set-while-preserving-the-audit/m-p/649303#M194634</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 rearrange the variables in a data set and preserve the audit trail?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data test;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; retain var1 var2;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; set test;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;==&amp;gt; audit trail is lost&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data test;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; retain var1 var2;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; modify test;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;==&amp;gt; audit trail is preserved, but variables are not rearranged&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:55:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rearrranging-variables-in-a-data-set-while-preserving-the-audit/m-p/649303#M194634</guid>
      <dc:creator>Sasuser52</dc:creator>
      <dc:date>2020-05-20T16:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: Rearrranging variables in a data set while preserving the audit trail</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rearrranging-variables-in-a-data-set-while-preserving-the-audit/m-p/649304#M194635</link>
      <description>&lt;P&gt;Hmm, interesting question.&amp;nbsp; I wouldn't think so, since changing variable order requires re-writing the dataset (i.e. re-creating it).&amp;nbsp; And I think when you create a dataset, it gets a fresh audit trail.&amp;nbsp; Don't know if there is any way to copy an audit trail and somehow apply it to a different dataset.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For just re-ordering, you might be better off just creating a view that people could use, with desired variable order.&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2020 16:59:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rearrranging-variables-in-a-data-set-while-preserving-the-audit/m-p/649304#M194635</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2020-05-20T16:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: Rearrranging variables in a data set while preserving the audit trail</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rearrranging-variables-in-a-data-set-while-preserving-the-audit/m-p/649308#M194636</link>
      <description>&lt;P&gt;Thank you for your answer &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; . I know that the problem can be solved to some extent by using a view (sorry that I did not mention them). But, I hope there is a way to rearrange variables in the data set without losing the audit trail. It would be ok, to temporarily suspend the audit trail for the rearrangement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2020 17:12:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rearrranging-variables-in-a-data-set-while-preserving-the-audit/m-p/649308#M194636</guid>
      <dc:creator>Sasuser52</dc:creator>
      <dc:date>2020-05-20T17:12:40Z</dc:date>
    </item>
  </channel>
</rss>

