<?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: Dataset containing pass-through query not updated on autoload in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Dataset-containing-pass-through-query-not-updated-on-autoload/m-p/274577#M4492</link>
    <description>&lt;P&gt;I think you understood correct.&lt;/P&gt;&lt;P&gt;What I need is a way to run the script in that SAS file (the same refresh you mentioned). So I am looking for a script to refresh that table. Can you help me with that?&lt;/P&gt;</description>
    <pubDate>Thu, 02 Jun 2016 09:24:03 GMT</pubDate>
    <dc:creator>pedrammobedi</dc:creator>
    <dc:date>2016-06-02T09:24:03Z</dc:date>
    <item>
      <title>Dataset containing pass-through query not updated on autoload</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Dataset-containing-pass-through-query-not-updated-on-autoload/m-p/274558#M4489</link>
      <description>&lt;P&gt;I am new to SAS and VA. I am trying to load the datasets I want in the &lt;STRONG&gt;Autoload&lt;/STRONG&gt; folder so that the data is updated every 15 minutes. The autoload process is run and I see that every new sas file (.sas7bdat) that I put in the autoload folder shows up in VA. The problem is that the loaded data seems to be a snapshot of the results of the first time I created the table in SAS.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So here is the query I wrote in my SAS file:&lt;/P&gt;&lt;PRE&gt;proc sql;
connect to odbc as mycon
(datasrc=dsPedramSample user=pedram password=XXXXXXXX);
CREATE TABLE pedramTestTable as 
select *
from connection to mycon
(select top 5 * from [SAS_Datamart].[dbo].[pedramTest]);
disconnect from mycon;
quit;&lt;/PRE&gt;&lt;P&gt;After running the above query, I copy the resulted SAS file to the autoload folder and run the autoload scheduled task again. I go to VA and it looks ok. Then I go to the &lt;EM&gt;pedramTest&lt;/EM&gt; table in the database and change some of the values and then run reload again. But the information is not changed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What am I doing wrong?&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2016 07:51:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Dataset-containing-pass-through-query-not-updated-on-autoload/m-p/274558#M4489</guid>
      <dc:creator>pedrammobedi</dc:creator>
      <dc:date>2016-06-02T07:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: Dataset containing pass-through query not updated on autoload</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Dataset-containing-pass-through-query-not-updated-on-autoload/m-p/274575#M4491</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/80788"&gt;@pedrammobedi﻿&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;not sure if I understand. Let me refresh here what I could understand, so far.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The initial load your procedure is:&lt;/P&gt;
&lt;P&gt;- Run a code that creates a SAS table from a database table.&lt;/P&gt;
&lt;P&gt;- Copy that table to SAS VA AutoLoad.&lt;/P&gt;
&lt;P&gt;- Run AutoLoad&lt;/P&gt;
&lt;P&gt;- Check if the table is loaded within SAS VA&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The refresh/update procedure is:&lt;/P&gt;
&lt;P&gt;- Change some values on the database&lt;/P&gt;
&lt;P&gt;- Run the AutoLoad again&lt;/P&gt;
&lt;P&gt;- Check if the table is loaded within SAS VA.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is my understanding correct? If it is right, then you are missing the refresh of the SAS table, by running the code and copying the table to SAS VA.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it is wrong, I would appreciate&amp;nbsp;some additional information &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2016 09:20:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Dataset-containing-pass-through-query-not-updated-on-autoload/m-p/274575#M4491</guid>
      <dc:creator>JuanS_OCS</dc:creator>
      <dc:date>2016-06-02T09:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: Dataset containing pass-through query not updated on autoload</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Dataset-containing-pass-through-query-not-updated-on-autoload/m-p/274577#M4492</link>
      <description>&lt;P&gt;I think you understood correct.&lt;/P&gt;&lt;P&gt;What I need is a way to run the script in that SAS file (the same refresh you mentioned). So I am looking for a script to refresh that table. Can you help me with that?&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2016 09:24:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Dataset-containing-pass-through-query-not-updated-on-autoload/m-p/274577#M4492</guid>
      <dc:creator>pedrammobedi</dc:creator>
      <dc:date>2016-06-02T09:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: Dataset containing pass-through query not updated on autoload</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Dataset-containing-pass-through-query-not-updated-on-autoload/m-p/274580#M4494</link>
      <description>&lt;P&gt;Thanks for your feedback &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Great, then we are on the right track.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can do this on several ways. I will describe some options, but there are more and you can select the one as you prefer:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1- Trigger Autoload with a remote command.&lt;/P&gt;
&lt;P&gt;Autoload is nothing else but another script (sh on Linux or bat on Windows), which you can execute remotely. I would ask for support and oppinion of your SAS or system administrators for this. This is an easy way, but sometimes it is not allowed by security policies.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2- Trigger Autoload by a file listener.&lt;/P&gt;
&lt;P&gt;You can schedule an additional script on your VA server, which can wait until it finds an empty file which will act as a trigger to activate the AutoLoad.&lt;/P&gt;
&lt;P&gt;Then you only need to ensure to generate and copy the file when you want to autoload. And clean that file when not.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3- Load the data into your "normal" LASR server, instead of your Public LASR/Autoload&lt;/P&gt;
&lt;P&gt;If you do this, then you won;t need AutoLoad anymore, you only need to use (if you have the right license and components) the proc LASR and create the libname to your LASR server/library.&lt;/P&gt;
&lt;P&gt;See the Administration Guide of SAS VA: &lt;A href="http://support.sas.com/documentation/cdl/en/inmsref/67597/HTML/default/viewer.htm#p1qf09ffb3hr02n1bt8gqqjs67gs.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/inmsref/67597/HTML/default/viewer.htm#p1qf09ffb3hr02n1bt8gqqjs67gs.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This information might help you a lot:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tips and Techniques for Efficiently Updating and Loading Data into&amp;nbsp;SAS® Visual Analytics:&amp;nbsp;&lt;A href="http://support.sas.com/resources/papers/proceedings15/SAS1905-2015.pdf" target="_blank"&gt;http://support.sas.com/resources/papers/proceedings15/SAS1905-2015.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or this wonderful post from&amp;nbsp;@Zencos /&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11210"&gt;@TriciaAanderud﻿&lt;/a&gt;:&amp;nbsp;&lt;A href="http://bi-notes.com/2015/10/oh-snap-upload-data-to-the-lasr-server-just-like-that/" target="_blank"&gt;http://bi-notes.com/2015/10/oh-snap-upload-data-to-the-lasr-server-just-like-that/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2016 09:35:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Dataset-containing-pass-through-query-not-updated-on-autoload/m-p/274580#M4494</guid>
      <dc:creator>JuanS_OCS</dc:creator>
      <dc:date>2016-06-02T09:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: Dataset containing pass-through query not updated on autoload</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Dataset-containing-pass-through-query-not-updated-on-autoload/m-p/274586#M4495</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's one &lt;A href="https://www.zencos.com/blog/using-the-sas-visual-analytics-autoload-feature/" target="_self"&gt;other post about the Autoload process&lt;/A&gt; but its on the geeky admin side.&amp;nbsp; The point of this article is that the Autoload process is checking for a timestamp change on the dataset. So if you make changes to the dataset - the Autoload process does not re-load the LASR until it sees the timestamp has changed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the mention &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/35204"&gt;@JuanS_OCS﻿&lt;/a&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2016 09:44:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Dataset-containing-pass-through-query-not-updated-on-autoload/m-p/274586#M4495</guid>
      <dc:creator>TriciaAanderud</dc:creator>
      <dc:date>2016-06-02T09:44:17Z</dc:date>
    </item>
  </channel>
</rss>

