<?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: Reloading in-memory table when sashdat file has been replaced in SAS Viya</title>
    <link>https://communities.sas.com/t5/SAS-Viya/Reloading-in-memory-table-when-sashdat-file-has-been-replaced/m-p/778758#M1178</link>
    <description>I believe by default the load job will load any sashdat files it finds in the path, similarly import when set to newer I think would capture new objects as "newer" than nothing. You can always give it a try and see what works for you.</description>
    <pubDate>Fri, 05 Nov 2021 13:25:38 GMT</pubDate>
    <dc:creator>gwootton</dc:creator>
    <dc:date>2021-11-05T13:25:38Z</dc:date>
    <item>
      <title>Reloading in-memory table when sashdat file has been replaced</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Reloading-in-memory-table-when-sashdat-file-has-been-replaced/m-p/778590#M1161</link>
      <description>&lt;P&gt;I have a folder setup on my SAS Viya server, where sashdat files are being dropped. &amp;nbsp;I am working on a SAS Viya Studio script that will do 2 things...&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;If a new file is found, which has never been loaded into memory, the script will load the file into memory and promote it so that it is available to SAS Viya Visual Analytics.&lt;OL&gt;&lt;LI&gt;I have this part working, using "proc cas".&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;If a sashdat is updated (replaced by a new version), I want to drop and reload the in-memory data.&lt;OL&gt;&lt;LI&gt;This is the part that I am struggling with. &amp;nbsp;I was thinking that I could compare the date/time on the file with the loaded (in-memory) date/time, but I have not yet found a way to do this.&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Any suggestions for part 2 above? &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ricky&lt;/P&gt;</description>
      <pubDate>Thu, 04 Nov 2021 20:09:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Reloading-in-memory-table-when-sashdat-file-has-been-replaced/m-p/778590#M1161</guid>
      <dc:creator>rgreen33</dc:creator>
      <dc:date>2021-11-04T20:09:24Z</dc:date>
    </item>
    <item>
      <title>Re: Reloading in-memory table when sashdat file has been replaced</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Reloading-in-memory-table-when-sashdat-file-has-been-replaced/m-p/778595#M1162</link>
      <description>&lt;P&gt;Do the included sample jobs for CAS table management not work for this?&lt;BR /&gt;&lt;BR /&gt;Sample Jobs in SAS Environment Manager&lt;BR /&gt;&lt;A href="https://go.documentation.sas.com/doc/en/calcdc/3.5/caldatamgmtcas/n150v9svjp42ron1hn9r496xj49m.htm#p1lsy0yhdi5q5ln1fapbsmsuco6d" target="_blank" rel="noopener"&gt;https://go.documentation.sas.com/doc/en/calcdc/3.5/caldatamgmtcas/n150v9svjp42ron1hn9r496xj49m.htm#p1lsy0yhdi5q5ln1fapbsmsuco6d&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think the load job will reload any that have updated data in their source.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Nov 2021 20:24:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Reloading-in-memory-table-when-sashdat-file-has-been-replaced/m-p/778595#M1162</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2021-11-04T20:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: Reloading in-memory table when sashdat file has been replaced</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Reloading-in-memory-table-when-sashdat-file-has-been-replaced/m-p/778695#M1166</link>
      <description>Perfect! I did not realize that the refresh would work like this. Thank you so much for the link. I was making this harder than it needed to be.&lt;BR /&gt;&lt;BR /&gt;I'm now rethinking the script that I already have written. From the above link, if I setup a "refresh" job, any ideas on how it would work if a new sashdat file is encountered (one where the table is not yet in memory)? Since the "target" does not exist, will it skip it, or will it go ahead and load it?&lt;BR /&gt;&lt;BR /&gt;I'm also now wondering if the sashdat file will be able to be replaced for those files that have already been loaded into memory??? I'm wondering if I should allow users to upload files to a different directory...and then import them into my CASLIB (folder). I'm trying to understand what the "import" job would do if I set it to newer...to import ONLY the files that have been updated.&lt;BR /&gt;&lt;BR /&gt;Ideas on how to piece this together to make it work?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Ricky</description>
      <pubDate>Fri, 05 Nov 2021 11:40:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Reloading-in-memory-table-when-sashdat-file-has-been-replaced/m-p/778695#M1166</guid>
      <dc:creator>rgreen33</dc:creator>
      <dc:date>2021-11-05T11:40:50Z</dc:date>
    </item>
    <item>
      <title>Re: Reloading in-memory table when sashdat file has been replaced</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Reloading-in-memory-table-when-sashdat-file-has-been-replaced/m-p/778758#M1178</link>
      <description>I believe by default the load job will load any sashdat files it finds in the path, similarly import when set to newer I think would capture new objects as "newer" than nothing. You can always give it a try and see what works for you.</description>
      <pubDate>Fri, 05 Nov 2021 13:25:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Reloading-in-memory-table-when-sashdat-file-has-been-replaced/m-p/778758#M1178</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2021-11-05T13:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: Reloading in-memory table when sashdat file has been replaced</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Reloading-in-memory-table-when-sashdat-file-has-been-replaced/m-p/778776#M1182</link>
      <description>Hi Ricky , &lt;BR /&gt;&lt;BR /&gt; any luck ? may i know how do you solve it to have a "autorefresh" from sashdat if the in memory table does not avalable? &lt;BR /&gt;&lt;BR /&gt;cheers</description>
      <pubDate>Fri, 05 Nov 2021 13:52:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Reloading-in-memory-table-when-sashdat-file-has-been-replaced/m-p/778776#M1182</guid>
      <dc:creator>elisehoo1</dc:creator>
      <dc:date>2021-11-05T13:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: Reloading in-memory table when sashdat file has been replaced</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Reloading-in-memory-table-when-sashdat-file-has-been-replaced/m-p/778851#M1190</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/379350"&gt;@elisehoo1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am still testing things. &amp;nbsp;I will post the solution once I have things working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ricky&lt;/P&gt;</description>
      <pubDate>Fri, 05 Nov 2021 17:41:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Reloading-in-memory-table-when-sashdat-file-has-been-replaced/m-p/778851#M1190</guid>
      <dc:creator>rgreen33</dc:creator>
      <dc:date>2021-11-05T17:41:17Z</dc:date>
    </item>
  </channel>
</rss>

