<?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: How to perm save a data  set in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-perm-save-a-data-set/m-p/372179#M275985</link>
    <description>&lt;P&gt;Gil,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;post your log.&amp;nbsp; You seem to be mixing Unix and Windows syntax, so I'm not sure what is happening.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One, non-SAS, possibility is that a system utility is 'cleaning up' at night and deleting files from that directory.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is "h:/reports" a shared directory?&amp;nbsp; Could other users be deleting your files?&lt;/P&gt;</description>
    <pubDate>Fri, 30 Jun 2017 14:16:29 GMT</pubDate>
    <dc:creator>Doc_Duke</dc:creator>
    <dc:date>2017-06-30T14:16:29Z</dc:date>
    <item>
      <title>How to perm save a data  set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-perm-save-a-data-set/m-p/372163#M275984</link>
      <description>I have a&lt;BR /&gt;libname test 'h:/report';&lt;BR /&gt;&lt;BR /&gt;It brings 2 days input1 and input2&lt;BR /&gt;I need to append a daily file&lt;BR /&gt;&lt;BR /&gt;Proc append base=test.input1&lt;BR /&gt;Data=test.input2 force;&lt;BR /&gt;Run;&lt;BR /&gt;Which works&lt;BR /&gt;I do a proc sort Nodup&lt;BR /&gt;By date ticket;&lt;BR /&gt;Run,&lt;BR /&gt;&lt;BR /&gt;The data appends and removes the dups. The issue is if I run script and it saves 5 days worth of data .the issue if I refer the library next day to pull the 5 days and it's blank data is not stored for future refer</description>
      <pubDate>Fri, 30 Jun 2017 13:54:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-perm-save-a-data-set/m-p/372163#M275984</guid>
      <dc:creator>Gil_</dc:creator>
      <dc:date>2017-06-30T13:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to perm save a data  set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-perm-save-a-data-set/m-p/372179#M275985</link>
      <description>&lt;P&gt;Gil,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;post your log.&amp;nbsp; You seem to be mixing Unix and Windows syntax, so I'm not sure what is happening.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One, non-SAS, possibility is that a system utility is 'cleaning up' at night and deleting files from that directory.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is "h:/reports" a shared directory?&amp;nbsp; Could other users be deleting your files?&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2017 14:16:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-perm-save-a-data-set/m-p/372179#M275985</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2017-06-30T14:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to perm save a data  set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-perm-save-a-data-set/m-p/372194#M275986</link>
      <description>&lt;P&gt;Since you do not demonstrate how you are "pulling" the 5 days of data that the "pull" is the issue, not the append. Note that if you append a dataset with no observations you are not going to have anything added.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am going to suspect from your data set names your process may be overwriting data sets.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may also want to explain why you need the "force" option. Many times I see that option it is an indication that a process is not in good control, sometimes over reliance on Proc Import and dealing with multiple definitions of variables because each set is different.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2017 14:41:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-perm-save-a-data-set/m-p/372194#M275986</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-06-30T14:41:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to perm save a data  set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-perm-save-a-data-set/m-p/372205#M275987</link>
      <description>Ballardw I think you might be right on it overwriting ...the lib creates .sas7bdat of input1 and input2 so when I refer the lib test it brings it in than than I import the daily input2 I see now that I have 2 input2 tables ..&lt;BR /&gt;I wish I could post log ...the better question to have ask how save a sas7bdat file ?</description>
      <pubDate>Fri, 30 Jun 2017 15:02:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-perm-save-a-data-set/m-p/372205#M275987</guid>
      <dc:creator>Gil_</dc:creator>
      <dc:date>2017-06-30T15:02:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to perm save a data  set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-perm-save-a-data-set/m-p/372240#M275988</link>
      <description>&lt;P&gt;Why can't you post a log? Copy the log from SAS and paste here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or at least show the entire code.&lt;/P&gt;
&lt;P&gt;But if naming is an issue then assigning "good" names is important.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Keep the data sets that you need to persist in that TEST library and then create the newer&amp;nbsp;data as temporary input1 dataset&amp;nbsp;in the work library.&lt;/P&gt;
&lt;P&gt;Then:&lt;/P&gt;
&lt;P&gt;Proc append base=test.input1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; data= work.input1;&lt;/P&gt;
&lt;P&gt;run;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Nothing in the test.input1 should go away without a specific statement by you that references test.input1.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2017 16:29:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-perm-save-a-data-set/m-p/372240#M275988</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-06-30T16:29:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to perm save a data  set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-perm-save-a-data-set/m-p/372854#M275989</link>
      <description>Thanks it work ..</description>
      <pubDate>Mon, 03 Jul 2017 20:31:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-perm-save-a-data-set/m-p/372854#M275989</guid>
      <dc:creator>Gil_</dc:creator>
      <dc:date>2017-07-03T20:31:16Z</dc:date>
    </item>
  </channel>
</rss>

