<?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: can we open sashdat without loading it into memory table in SAS Viya</title>
    <link>https://communities.sas.com/t5/SAS-Viya/can-we-open-sashdat-without-loading-it-into-memory-table/m-p/781945#M1209</link>
    <description>&lt;P&gt;correctoin&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the simple procedures&amp;nbsp; as now :&lt;/P&gt;
&lt;P&gt;step1&amp;nbsp;if cas&amp;nbsp; table exists we append the record to existing cas table else new cas table (promote=yes)&lt;/P&gt;
&lt;P&gt;step2&amp;nbsp;&lt;SPAN&gt;save sashdat&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the new procedure we would like to do are :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;step1 if there is sashdat table , and in memory table not there , restore first then proceed to step2 .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;step2 if cas&amp;nbsp; table exists we append the record to existing cas table else new cas table (promote=yes)&lt;/P&gt;</description>
    <pubDate>Tue, 23 Nov 2021 13:38:44 GMT</pubDate>
    <dc:creator>elisehoo1</dc:creator>
    <dc:date>2021-11-23T13:38:44Z</dc:date>
    <item>
      <title>can we open sashdat without loading it into memory table</title>
      <link>https://communities.sas.com/t5/SAS-Viya/can-we-open-sashdat-without-loading-it-into-memory-table/m-p/781910#M1208</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;in general , i would like to know&lt;/P&gt;
&lt;P&gt;1.how to restore the memory table from sashdat in coding form.&lt;/P&gt;
&lt;P&gt;2. how to memory table does not exists but sashdat is available&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;in the ETL we build, we saved a sashdat physical data each time&amp;nbsp; some actions performed against the CAS table.&amp;nbsp; in certain occasions, the memory table flushed out and the ETL did not have the restore process from the sashdat, it treated as new memory table and restart as a new fresh memory table .&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;to avoid it, i would like to know if any programming or option that i can use in ETL to detect missing&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the simple procedures&amp;nbsp; as now :&lt;/P&gt;
&lt;P&gt;step1&amp;nbsp;if cas&amp;nbsp; table exists we append the record&amp;nbsp;else new cas table exists we append the record&amp;nbsp;&lt;/P&gt;
&lt;P&gt;step2&amp;nbsp;&lt;SPAN style="font-family: inherit;"&gt;save sashdat&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the new procedure we would like to do are :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;step1 if there is sashdat table , and in memory table not there , restore first then proceed to step2 .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;step2 if cas&amp;nbsp; table exists we append the record&amp;nbsp;else new cas table exists we append the record&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;step3 save sashdat&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Nov 2021 11:43:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/can-we-open-sashdat-without-loading-it-into-memory-table/m-p/781910#M1208</guid>
      <dc:creator>elisehoo1</dc:creator>
      <dc:date>2021-11-23T11:43:05Z</dc:date>
    </item>
    <item>
      <title>Re: can we open sashdat without loading it into memory table</title>
      <link>https://communities.sas.com/t5/SAS-Viya/can-we-open-sashdat-without-loading-it-into-memory-table/m-p/781945#M1209</link>
      <description>&lt;P&gt;correctoin&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the simple procedures&amp;nbsp; as now :&lt;/P&gt;
&lt;P&gt;step1&amp;nbsp;if cas&amp;nbsp; table exists we append the record to existing cas table else new cas table (promote=yes)&lt;/P&gt;
&lt;P&gt;step2&amp;nbsp;&lt;SPAN&gt;save sashdat&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the new procedure we would like to do are :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;step1 if there is sashdat table , and in memory table not there , restore first then proceed to step2 .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;step2 if cas&amp;nbsp; table exists we append the record to existing cas table else new cas table (promote=yes)&lt;/P&gt;</description>
      <pubDate>Tue, 23 Nov 2021 13:38:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/can-we-open-sashdat-without-loading-it-into-memory-table/m-p/781945#M1209</guid>
      <dc:creator>elisehoo1</dc:creator>
      <dc:date>2021-11-23T13:38:44Z</dc:date>
    </item>
    <item>
      <title>Re: can we open sashdat without loading it into memory table</title>
      <link>https://communities.sas.com/t5/SAS-Viya/can-we-open-sashdat-without-loading-it-into-memory-table/m-p/781976#M1210</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To my knowledge, the only thing you can do with a .sashdat file is loading it into memory (in order to do something with it).&lt;/P&gt;
&lt;P&gt;But I might be mistaken.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's how to do that (just one way):&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc cas;
   table.loadtable / path="iris.sashdat" casOut={name="IRIS"};
run; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;To make a .sashdat file , use SAVE statement of PROC CASUTIL, as in here :&lt;/P&gt;
&lt;P&gt;SAS 9.4 / Viya 3.5&lt;BR /&gt;CAS User’s Guide&lt;BR /&gt;CASUTIL Procedure&lt;BR /&gt;Example 4: Saving and Loading Encrypted SASHDAT Files&lt;/P&gt;
&lt;P&gt;&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/casref/p1et7qytnh6dvbn1urs5rhw5uyf7.htm" target="_blank"&gt;https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/casref/p1et7qytnh6dvbn1urs5rhw5uyf7.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;These .sashdat files can be important indeed because most (UNIX) servers are patched and re-booted like once a month. At these moments memory is purged of course and you lose all your in memory tables.&lt;/P&gt;
&lt;P&gt;Loading a table in memory from .sashdat goes muck quicker than from .sas7bdat (in V9 permanent library).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Tue, 23 Nov 2021 15:39:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/can-we-open-sashdat-without-loading-it-into-memory-table/m-p/781976#M1210</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2021-11-23T15:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: can we open sashdat without loading it into memory table</title>
      <link>https://communities.sas.com/t5/SAS-Viya/can-we-open-sashdat-without-loading-it-into-memory-table/m-p/782640#M1236</link>
      <description>thank you , wondering if there is any code to detect sashdat existence for loading?</description>
      <pubDate>Sat, 27 Nov 2021 05:12:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/can-we-open-sashdat-without-loading-it-into-memory-table/m-p/782640#M1236</guid>
      <dc:creator>elisehoo1</dc:creator>
      <dc:date>2021-11-27T05:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: can we open sashdat without loading it into memory table</title>
      <link>https://communities.sas.com/t5/SAS-Viya/can-we-open-sashdat-without-loading-it-into-memory-table/m-p/782668#M1237</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Choose your incaslib= and look in the dataset work.FileInfo !&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;cas mySession sessopts=(caslib=casuser timeout=1800 locale="en_US");

ODS TRACE OFF;
ODS OUTPUT FileInfo=work.FileInfo;
proc casutil incaslib="Public";
 *list tables;
 list files;  run;
QUIT;

cas mySession terminate;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Sat, 27 Nov 2021 12:49:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/can-we-open-sashdat-without-loading-it-into-memory-table/m-p/782668#M1237</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2021-11-27T12:49:16Z</dc:date>
    </item>
  </channel>
</rss>

