<?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 stability of sas7bdat format in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/stability-of-sas7bdat-format/m-p/835708#M25140</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;not sure this is the right place to ask the question but i'll try.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you have a sas7bdat file on a secure location and pull it down (from one server to another) with some file transport tool. What is the chance that a variable can change content without the user picking up on it?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example if it's numerical value it changes from &lt;STRONG&gt;5&lt;/STRONG&gt; to &lt;STRONG&gt;99.234&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;If it's a character variable it changes from '&lt;STRONG&gt;ABC&lt;/STRONG&gt;' to '&lt;STRONG&gt;mike&lt;/STRONG&gt;'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note that the data is straight forward ASCII.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One way of ensuring the file is the same is to check the md5 sum before and after for example. But i would argue that if you have a scenario where the file is somehow corrupted you would pick it up just by looking at it, i.e. it would be immediately apparent due to strange characters etc.. This would be due to encoding and all the metadata in the format.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am i wrong? If i am what is the likelihood of this occurring?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Jan&lt;/P&gt;</description>
    <pubDate>Wed, 28 Sep 2022 20:40:33 GMT</pubDate>
    <dc:creator>janpeter</dc:creator>
    <dc:date>2022-09-28T20:40:33Z</dc:date>
    <item>
      <title>stability of sas7bdat format</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/stability-of-sas7bdat-format/m-p/835708#M25140</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;not sure this is the right place to ask the question but i'll try.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you have a sas7bdat file on a secure location and pull it down (from one server to another) with some file transport tool. What is the chance that a variable can change content without the user picking up on it?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example if it's numerical value it changes from &lt;STRONG&gt;5&lt;/STRONG&gt; to &lt;STRONG&gt;99.234&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;If it's a character variable it changes from '&lt;STRONG&gt;ABC&lt;/STRONG&gt;' to '&lt;STRONG&gt;mike&lt;/STRONG&gt;'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note that the data is straight forward ASCII.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One way of ensuring the file is the same is to check the md5 sum before and after for example. But i would argue that if you have a scenario where the file is somehow corrupted you would pick it up just by looking at it, i.e. it would be immediately apparent due to strange characters etc.. This would be due to encoding and all the metadata in the format.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am i wrong? If i am what is the likelihood of this occurring?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Jan&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2022 20:40:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/stability-of-sas7bdat-format/m-p/835708#M25140</guid>
      <dc:creator>janpeter</dc:creator>
      <dc:date>2022-09-28T20:40:33Z</dc:date>
    </item>
    <item>
      <title>Re: stability of sas7bdat format</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/stability-of-sas7bdat-format/m-p/835716#M25141</link>
      <description>&lt;P&gt;You are correct that an md5 (or equivalent) hash checksum is the right way to check if a file has been corrupted or in any way modified.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since m6 (thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/35763"&gt;@yabwon&lt;/a&gt;&amp;nbsp;for bringing this to my attention) there is also a function native in SAS that can do a full-file checksum.&amp;nbsp; It is called&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;hashing_file()&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and can&amp;nbsp;even be used in pure macro, eg:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class="fragment"&gt;%put %sysfunc(hashing_file(md5,/path/to/file.blob,0));&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;If you would like to hash an entire directory (of directories) of datasets, you are welcome to use this macro:&amp;nbsp;&amp;nbsp;&lt;A href="https://core.sasjs.io/mp__hashdirectory_8sas.html" target="_blank"&gt;https://core.sasjs.io/mp__hashdirectory_8sas.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2022 21:38:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/stability-of-sas7bdat-format/m-p/835716#M25141</guid>
      <dc:creator>AllanBowe</dc:creator>
      <dc:date>2022-09-28T21:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: stability of sas7bdat format</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/stability-of-sas7bdat-format/m-p/835734#M25142</link>
      <description>&lt;P&gt;It would help if you explained your actual use case in more detail. Are you moving SAS datasets from one SAS installation to another or are you restoring them to the same SAS installation they were created on originally?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it is the former then I'm assuming these installations use the same OS as otherwise the SAS datasets won't be compatible or usable, unless copied in transport format. Care might also be needed if the SAS encoding settings are different between installations. If it is the latter then of course there would be no compatibility problems as long as the file transfer process didn't change the files in any way.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BTW this type of post belongs in the Administration and Deployment Community rather than SAS Risk Management.&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2022 23:57:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/stability-of-sas7bdat-format/m-p/835734#M25142</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-09-28T23:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: stability of sas7bdat format</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/stability-of-sas7bdat-format/m-p/835768#M25143</link>
      <description>Hi SASKiwi,&lt;BR /&gt;&lt;BR /&gt;thanks for letting me know about the community. I will probably follow up there.&lt;BR /&gt;&lt;BR /&gt;The issue is not compatibility.&lt;BR /&gt;&lt;BR /&gt;Regardless of platform. Let's say the case is that you have a repository on one server..&lt;BR /&gt;1. You pull down as sas7bdat file from it.&lt;BR /&gt;2. You open it on your platform on a different server&lt;BR /&gt;Can you be 100% certain that the information you see is the same as in the repository? More background. The same question would apply to xpt files. Can you be certain that if this was xpt that you have the same data?&lt;BR /&gt;&lt;BR /&gt;i would argue that sas7bdat is more robust than xpt given the encoding and multiple metadata levels.&lt;BR /&gt;&lt;BR /&gt;Anyway thanks for your reply. Appreciated.&lt;BR /&gt;&lt;BR /&gt;BR&lt;BR /&gt;Jan</description>
      <pubDate>Thu, 29 Sep 2022 05:15:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/stability-of-sas7bdat-format/m-p/835768#M25143</guid>
      <dc:creator>janpeter</dc:creator>
      <dc:date>2022-09-29T05:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: stability of sas7bdat format</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/stability-of-sas7bdat-format/m-p/835770#M25144</link>
      <description>Hi Allan,&lt;BR /&gt;&lt;BR /&gt;thanks for the valuable information. I will use this going forward.&lt;BR /&gt;&lt;BR /&gt;The question was more whether you can pull information from one server to another and demonstrate that it has integrity. The generic question is on any file format. This specific is for sas7bdat.&lt;BR /&gt;I would argue that you would spot if something is of fairly fast if you work with the file since it would probably display "weird" characters or not import at all for that matter.&lt;BR /&gt;&lt;BR /&gt;Appreciate your quick answer though.&lt;BR /&gt;&lt;BR /&gt;BR&lt;BR /&gt;jan</description>
      <pubDate>Thu, 29 Sep 2022 05:29:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/stability-of-sas7bdat-format/m-p/835770#M25144</guid>
      <dc:creator>janpeter</dc:creator>
      <dc:date>2022-09-29T05:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: stability of sas7bdat format</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/stability-of-sas7bdat-format/m-p/835792#M25145</link>
      <description>&lt;P&gt;As long as you use a copy method which keeps the file as is (e.g. cp on UNIX, a proper backup/restore, binary method when using SFTP), there will not be changes to the data. Improper methods will most likely cause the file to be unusable in the first place.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2022 09:16:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/stability-of-sas7bdat-format/m-p/835792#M25145</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-09-29T09:16:11Z</dc:date>
    </item>
    <item>
      <title>Re: stability of sas7bdat format</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/stability-of-sas7bdat-format/m-p/836566#M25193</link>
      <description>Or the very simple way is to zip it up, then unzip it on the other side. The ZIP format does all of the md5 checking as part of it's zip/unzip process&lt;BR /&gt;</description>
      <pubDate>Mon, 03 Oct 2022 17:12:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/stability-of-sas7bdat-format/m-p/836566#M25193</guid>
      <dc:creator>JayKyleFCC</dc:creator>
      <dc:date>2022-10-03T17:12:31Z</dc:date>
    </item>
  </channel>
</rss>

