<?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: Automating Data Load from Hive to CAS in SAS Viya</title>
    <link>https://communities.sas.com/t5/SAS-Viya/Automating-Data-Load-from-Hive-to-CAS/m-p/944567#M2597</link>
    <description>&lt;P&gt;I currently use SAS Data Explorer to manually load data from Hive into CAS memory by selecting the table and clicking "load into memory"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Mahis_0-1726737295774.png" style="width: 882px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/100508i1BCEE4B1A8B1E7F4/image-dimensions/882x97?v=v2" width="882" height="97" role="button" title="Mahis_0-1726737295774.png" alt="Mahis_0-1726737295774.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This table is the data source for a report in SAS VA&lt;/P&gt;
&lt;P&gt;New records are added to this table every day and I want to automate the process of loading these new records into CAS memory daily. I also need the SAS VA report to show the new records automatically without any manual steps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there any feature in SAS Viya to do this or do I need to write code for it?&lt;/P&gt;</description>
    <pubDate>Thu, 19 Sep 2024 09:16:32 GMT</pubDate>
    <dc:creator>Mahis</dc:creator>
    <dc:date>2024-09-19T09:16:32Z</dc:date>
    <item>
      <title>Automating Data Load from Hive to CAS</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Automating-Data-Load-from-Hive-to-CAS/m-p/942715#M2558</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm working on automating the data loading process from Hive to CAS for daily SAS Viya reports. Any advice on how to do this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2024 14:39:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Automating-Data-Load-from-Hive-to-CAS/m-p/942715#M2558</guid>
      <dc:creator>Mahis</dc:creator>
      <dc:date>2024-09-05T14:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: Automating Data Load from Hive to CAS</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Automating-Data-Load-from-Hive-to-CAS/m-p/943093#M2567</link>
      <description>&lt;P&gt;We would need quite a bit more information to provide more than some generic design principles as response.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you say automation: Do you already have all the code in place and it's just about scheduling or is this about design and implementation of a reporting system in Viya?&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2024 01:36:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Automating-Data-Load-from-Hive-to-CAS/m-p/943093#M2567</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2024-09-09T01:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: Automating Data Load from Hive to CAS</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Automating-Data-Load-from-Hive-to-CAS/m-p/944567#M2597</link>
      <description>&lt;P&gt;I currently use SAS Data Explorer to manually load data from Hive into CAS memory by selecting the table and clicking "load into memory"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Mahis_0-1726737295774.png" style="width: 882px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/100508i1BCEE4B1A8B1E7F4/image-dimensions/882x97?v=v2" width="882" height="97" role="button" title="Mahis_0-1726737295774.png" alt="Mahis_0-1726737295774.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This table is the data source for a report in SAS VA&lt;/P&gt;
&lt;P&gt;New records are added to this table every day and I want to automate the process of loading these new records into CAS memory daily. I also need the SAS VA report to show the new records automatically without any manual steps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there any feature in SAS Viya to do this or do I need to write code for it?&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2024 09:16:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Automating-Data-Load-from-Hive-to-CAS/m-p/944567#M2597</guid>
      <dc:creator>Mahis</dc:creator>
      <dc:date>2024-09-19T09:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: Automating Data Load from Hive to CAS</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Automating-Data-Load-from-Hive-to-CAS/m-p/944573#M2600</link>
      <description>&lt;P&gt;There's isn't a ton of documentation, but I think relates to your requrement:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/dprepcdc/v_027/datahub/p1sv89vo4n8f03n0zvq0k90i8g3t.htm" target="_blank"&gt;SAS Help Center: Working with Data in CAS&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;12. When ready, you can run the import operation. Do one of the following:&lt;/P&gt;
&lt;UL class="xisDoc-listUnordered"&gt;
&lt;LI class="xisDoc-item"&gt;You can right-click the table or file to be copied and select&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="xisDoc-windowItem"&gt;Import item&lt;/SPAN&gt;. If the import succeeds, a copy of the table or file is loaded to memory on the CAS server that is specified in the caslib. The copy of the table or file can be selected from the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="xisDoc-windowItem"&gt;In-memory data (available)&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;list or the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="xisDoc-windowItem"&gt;Sources&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;tab. If the import fails, see&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A tabindex="0" href="https://documentation.sas.com/doc/en/dprepcdc/v_027/datahub/p0m6sdzan2fadwn1d9hiiyu18i49.htm#p1obu929undd6kn1xb4qyqzv0f40" target="_blank"&gt;General Usage Notes&lt;/A&gt;.
&lt;P class="xisDoc-paragraph"&gt;The&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="xisDoc-windowItem"&gt;Import item&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;option is used to run a job that imports the selected data. You can review the status of import jobs on the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="xisDoc-windowItem"&gt;Monitoring&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;tab of the Jobs page in SAS Environment Manager. For more information about using this tab, see&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A tabindex="0" href="https://documentation.sas.com/doc/en/sasadmincdc/v_056/evfun/n0b9cf8ru47gp6n1lvamxqwbr3by.htm#p1er9e2e0qzwqjn1el3rui3ngatp" target="_blank"&gt;Monitor Jobs&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="xisDoc-xrefBookTitle"&gt;SAS Environment Manager: User’s Guide&lt;/SPAN&gt;.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI class="xisDoc-item"&gt;For more information about local file import, see&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A title="opens in a new browser tab" href="https://developer.sas.com/apis/rest/Compute/#upload-a-data-file-to-the-collection-of-tables" target="_blank" rel="noopener noreferrer"&gt;https://developer.sas.com/apis/rest/Compute/#upload-a-data-file-to-the-collection-of-tables&lt;/A&gt;.&lt;/LI&gt;
&lt;LI class="xisDoc-item"&gt;&lt;FONT color="#0000FF"&gt;If you right-click the table or file in the import queue, and the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="xisDoc-windowItem"&gt;Create a job&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;option is available, you can use this option to create a job request on the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="xisDoc-windowItem"&gt;Scheduling&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;tab of the Jobs window in SAS Environment Manager. You can then use the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="xisDoc-windowItem"&gt;Scheduling&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;tab to run or schedule the job at an appropriate time. For more information, see&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A tabindex="0" href="https://documentation.sas.com/doc/en/dprepcdc/v_027/datahub/p1sv89vo4n8f03n0zvq0k90i8g3t.htm#n0jc7teiz2lo1ln1b88innxu3a8a" target="_blank"&gt;Create Import Job Requests&lt;/A&gt;. After the import job request is run, a copy of the table or file is loaded to memory on the CAS server that is specified in the caslib. The copy can be selected from the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="xisDoc-windowItem"&gt;In-memory data (available)&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;list or the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="xisDoc-windowItem"&gt;Sources&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;tab.&lt;/FONT&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Thu, 19 Sep 2024 10:00:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Automating-Data-Load-from-Hive-to-CAS/m-p/944573#M2600</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2024-09-19T10:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: Automating Data Load from Hive to CAS</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Automating-Data-Load-from-Hive-to-CAS/m-p/944576#M2601</link>
      <description>&lt;P&gt;Given that CAS tables are in-memory that gets wiped out whenever the server needs to restart (like for maintenance) I'd go for a daily full-load.&lt;/P&gt;
&lt;P&gt;Depending on how your environment looks like a load from Hadoop executes potentially fully in parallel and can be very fast.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'd certainly go for a SAS coding option that's scheduled. If you must load new data during business hours then I'd also first load into another CAS table and then "swap" the tables in CAS to keep the outage for report consumers to a minimum.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One of the reasons that I'd go for code: It allows you to explicitly defined how to map source to target columns because for example Hive String data types will per default result in a 1024 Varchar CAS column. As a rule of thumb: Don't use CAS Varchar for columns where the max string length is below 16 bytes (use CHAR instead) and also use CHAR where the string length is constant.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also: If the data is used for reports that mostly show detail data aggregated by some categorical variable (example: transactional data summed by account) then it's also beneficial for report performance to load all the data that belongs to the same value of this categorical variable (example: the same account) onto the same cas node. This is something you can do with code - like the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/v_055/caspg/cas-table-loadtable.htm" target="_self"&gt;loadTable action&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2024 10:29:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Automating-Data-Load-from-Hive-to-CAS/m-p/944576#M2601</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2024-09-19T10:29:40Z</dc:date>
    </item>
  </channel>
</rss>

