<?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: archiving SAS dataset as text file in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/archiving-SAS-dataset-as-text-file/m-p/838595#M331562</link>
    <description>&lt;P&gt;Why would you ever archive a SAS data set as text? You will potentially lose metadata about the dataset and about the variables, and text will undoubtedly be larger than the actual SAS data set.&lt;/P&gt;</description>
    <pubDate>Fri, 14 Oct 2022 09:56:29 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2022-10-14T09:56:29Z</dc:date>
    <item>
      <title>archiving SAS dataset as text file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/archiving-SAS-dataset-as-text-file/m-p/838594#M331561</link>
      <description>&lt;P&gt;When it comes to archive SAS datasets as text file using SAS, what file format would you recommend?&lt;/P&gt;
&lt;P&gt;json with proc http, csv file, xml using ???, owl (I'm not fit on that one, it could be fully non relevant)...&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2022 09:55:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/archiving-SAS-dataset-as-text-file/m-p/838594#M331561</guid>
      <dc:creator>xxformat_com</dc:creator>
      <dc:date>2022-10-14T09:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: archiving SAS dataset as text file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/archiving-SAS-dataset-as-text-file/m-p/838595#M331562</link>
      <description>&lt;P&gt;Why would you ever archive a SAS data set as text? You will potentially lose metadata about the dataset and about the variables, and text will undoubtedly be larger than the actual SAS data set.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2022 09:56:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/archiving-SAS-dataset-as-text-file/m-p/838595#M331562</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-10-14T09:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: archiving SAS dataset as text file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/archiving-SAS-dataset-as-text-file/m-p/838609#M331564</link>
      <description>&lt;P&gt;First, get to Know Your Data (Maxim 3). This will determine if you can safely use a delimiter or any line separator (character variables which contain line separators may force you to use a fixed-length record structure).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would combine the text file and a result of PROC CONTENTS in a ZIP archive, so you keep all data and metadata and also optimize storage consumption.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2022 10:36:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/archiving-SAS-dataset-as-text-file/m-p/838609#M331564</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-10-14T10:36:36Z</dc:date>
    </item>
    <item>
      <title>Re: archiving SAS dataset as text file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/archiving-SAS-dataset-as-text-file/m-p/838674#M331596</link>
      <description>&lt;P&gt;Because in 40-year time, who know what the technology will be like and you need to still be able to read the data when authorities request them for example.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2022 17:17:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/archiving-SAS-dataset-as-text-file/m-p/838674#M331596</guid>
      <dc:creator>xxformat_com</dc:creator>
      <dc:date>2022-10-14T17:17:28Z</dc:date>
    </item>
    <item>
      <title>Re: archiving SAS dataset as text file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/archiving-SAS-dataset-as-text-file/m-p/838675#M331597</link>
      <description>Thanks for your input.</description>
      <pubDate>Fri, 14 Oct 2022 17:17:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/archiving-SAS-dataset-as-text-file/m-p/838675#M331597</guid>
      <dc:creator>xxformat_com</dc:creator>
      <dc:date>2022-10-14T17:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: archiving SAS dataset as text file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/archiving-SAS-dataset-as-text-file/m-p/838676#M331598</link>
      <description>IME if archiving for audits are required typically text files are not main storage systems. You usually set up a DB that is managed and audited to ensure no corruption and tracked over time. It's too easy to lose track of a folder/file here and there not in a managed system of some sort. &lt;BR /&gt;&lt;BR /&gt;If you have no other choice, I'd be creating text files (CSV or delimited), the program to read the SAS file, And a data dictionary for each file containing the metadata. The data dictionary would include the business and technical definition not just metadata. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 14 Oct 2022 17:20:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/archiving-SAS-dataset-as-text-file/m-p/838676#M331598</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-10-14T17:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: archiving SAS dataset as text file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/archiving-SAS-dataset-as-text-file/m-p/838795#M331657</link>
      <description>Thank you &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt; for your input.  IME=Input Method Editor?</description>
      <pubDate>Sat, 15 Oct 2022 10:38:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/archiving-SAS-dataset-as-text-file/m-p/838795#M331657</guid>
      <dc:creator>xxformat_com</dc:creator>
      <dc:date>2022-10-15T10:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: archiving SAS dataset as text file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/archiving-SAS-dataset-as-text-file/m-p/838822#M331664</link>
      <description>&lt;P&gt;&lt;STRONG&gt;I&lt;/STRONG&gt;n &lt;STRONG&gt;M&lt;/STRONG&gt;y &lt;STRONG&gt;E&lt;/STRONG&gt;xperience.&lt;/P&gt;</description>
      <pubDate>Sat, 15 Oct 2022 15:38:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/archiving-SAS-dataset-as-text-file/m-p/838822#M331664</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-10-15T15:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: archiving SAS dataset as text file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/archiving-SAS-dataset-as-text-file/m-p/838838#M331677</link>
      <description>&lt;P&gt;I suggest you talk to the IT storage experts in your company. Typically companies have storage standards which dictate how long in what form data must be kept. Is there any need to go beyond these standards, which in my experience don't go beyond 7 to 10 years?&lt;/P&gt;</description>
      <pubDate>Sat, 15 Oct 2022 22:36:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/archiving-SAS-dataset-as-text-file/m-p/838838#M331677</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-10-15T22:36:50Z</dc:date>
    </item>
    <item>
      <title>Re: archiving SAS dataset as text file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/archiving-SAS-dataset-as-text-file/m-p/838849#M331682</link>
      <description>&lt;P&gt;IF you really must store as text files then I'd got for either XML or Json as these are text based formats which also future software should be able to read AND they also store metadata like the data types.&lt;/P&gt;</description>
      <pubDate>Sun, 16 Oct 2022 03:48:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/archiving-SAS-dataset-as-text-file/m-p/838849#M331682</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2022-10-16T03:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: archiving SAS dataset as text file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/archiving-SAS-dataset-as-text-file/m-p/838860#M331684</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/184742"&gt;@xxformat_com&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Because in 40-year time, who know what the technology will be like and you need to still be able to read the data when authorities request them for example.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;As others have mentioned, data storage experts ought to be consulted, rather than you trying to come up with your own solution. JSON and XML probably would work better than plain text as these enable you to store the metadata in the file.&lt;/P&gt;</description>
      <pubDate>Sun, 16 Oct 2022 10:36:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/archiving-SAS-dataset-as-text-file/m-p/838860#M331684</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-10-16T10:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: archiving SAS dataset as text file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/archiving-SAS-dataset-as-text-file/m-p/838868#M331685</link>
      <description>Clinical research goes beyond 10 years.</description>
      <pubDate>Sun, 16 Oct 2022 16:32:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/archiving-SAS-dataset-as-text-file/m-p/838868#M331685</guid>
      <dc:creator>xxformat_com</dc:creator>
      <dc:date>2022-10-16T16:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: archiving SAS dataset as text file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/archiving-SAS-dataset-as-text-file/m-p/838874#M331686</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/184742"&gt;@xxformat_com&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Clinical research goes beyond 10 years.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;All the more reason to align with your company's standards in terms of what you need to keep and in what form.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 16 Oct 2022 19:01:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/archiving-SAS-dataset-as-text-file/m-p/838874#M331686</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-10-16T19:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: archiving SAS dataset as text file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/archiving-SAS-dataset-as-text-file/m-p/838880#M331689</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13976"&gt;@SASKiwi&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I suggest you talk to the IT storage experts in your company. Typically companies have storage standards which dictate how long in what form data must be kept. Is there any need to go beyond these standards, which in my experience don't go beyond 7 to 10 years?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Social Services was 100 years record retention.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We had paper in storage, tapes and then DB for anything in the past 70 years.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 16 Oct 2022 23:09:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/archiving-SAS-dataset-as-text-file/m-p/838880#M331689</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-10-16T23:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: archiving SAS dataset as text file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/archiving-SAS-dataset-as-text-file/m-p/838892#M331696</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12447"&gt;@Patrick&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;IF you really must store as text files then I'd got for either XML or Json as these are text based formats which also future software should be able to read AND they also store metadata like the data types.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I would probably prefer to have a more portable storage method than use the latest fad structure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So as someone suggested write the data as plain text.&amp;nbsp; Perhaps delimited files or perhaps fixed length records.&lt;/P&gt;
&lt;P&gt;But also include the documentation of what the data is.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You will need that documentation even if did jump on the JSON or XML band wagon since they really do not add that much more information.&amp;nbsp; &amp;nbsp;In theory you could write more XML that will define the data structure and perhaps that is better since it could be tested.&amp;nbsp; And since you are starting with simple rectangular SAS dataset structures there is not any really complex structure that would require that effort.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So just write clear description of the dataset.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could probably automate some of it.&amp;nbsp; See&amp;nbsp;&lt;A href="https://github.com/sasutils/macros/blob/master/ds2post.sas" target="_blank"&gt;https://github.com/sasutils/macros/blob/master/ds2post.sas&lt;/A&gt;&amp;nbsp;as a simple example.&amp;nbsp;But that will not include the real business knowledge about what the data is.&amp;nbsp; Which is probably the most important part.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2022 03:36:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/archiving-SAS-dataset-as-text-file/m-p/838892#M331696</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-10-17T03:36:36Z</dc:date>
    </item>
  </channel>
</rss>

