<?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: Scheduled data query not updating the data source in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Scheduled-data-query-not-updating-the-data-source/m-p/296706#M5294</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would advise you to find the logs of the execution of this query.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As far as I can recall, the windows scheduler task will point you to an vbs code that will be on your Lev1\SchedulingServer folder. This vbs code will have the command line that actually&amp;nbsp;calls to the .sas file and the same command line&amp;nbsp;will have the location and name of the related log file.&lt;/P&gt;
&lt;P&gt;If you can find this log, you can also attach it tho this topic, and we can translate the problem&amp;nbsp;for you.&lt;/P&gt;</description>
    <pubDate>Tue, 06 Sep 2016 12:06:16 GMT</pubDate>
    <dc:creator>JuanS_OCS</dc:creator>
    <dc:date>2016-09-06T12:06:16Z</dc:date>
    <item>
      <title>Scheduled data query not updating the data source</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Scheduled-data-query-not-updating-the-data-source/m-p/296703#M5292</link>
      <description>&lt;P&gt;In SAS VA I am using the &lt;STRONG&gt;Data Builder&lt;/STRONG&gt; (Import Data using &lt;EM&gt;ODBC&lt;/EM&gt;) to read the contents of a database table into Public LASR.&lt;/P&gt;&lt;P&gt;I then create a data query to read the content of this resulted dataset.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Next, I create a schedule for the data query so that it updates the dataset on an hourly basis.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All the above steps seem to work. The schedule is created and when I look in my &lt;STRONG&gt;Windows Task Scheduler &lt;/STRONG&gt;(my SAS is installed on a Windows server), the task is successfully triggered. Except my data set is not updated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FYI, my table contains only one column called number that, at the time of creating the dataset it contains the values 1, 2, 3, 4, 5.&lt;/P&gt;&lt;P&gt;I then went to the database and inserted new values (6,7,8,9 and 10) to the table. The task is triggered but my data set still contains 1,2,3,4,5 when I load the report.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2016 11:52:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Scheduled-data-query-not-updating-the-data-source/m-p/296703#M5292</guid>
      <dc:creator>pedrammobedi</dc:creator>
      <dc:date>2016-09-06T11:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduled data query not updating the data source</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Scheduled-data-query-not-updating-the-data-source/m-p/296706#M5294</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would advise you to find the logs of the execution of this query.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As far as I can recall, the windows scheduler task will point you to an vbs code that will be on your Lev1\SchedulingServer folder. This vbs code will have the command line that actually&amp;nbsp;calls to the .sas file and the same command line&amp;nbsp;will have the location and name of the related log file.&lt;/P&gt;
&lt;P&gt;If you can find this log, you can also attach it tho this topic, and we can translate the problem&amp;nbsp;for you.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2016 12:06:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Scheduled-data-query-not-updating-the-data-source/m-p/296706#M5294</guid>
      <dc:creator>JuanS_OCS</dc:creator>
      <dc:date>2016-09-06T12:06:16Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduled data query not updating the data source</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Scheduled-data-query-not-updating-the-data-source/m-p/296708#M5296</link>
      <description>&lt;P&gt;Here is the contents of the .vbs file that the Task runs:&lt;/P&gt;&lt;P&gt;(&lt;STRONG&gt;queryPedramTests&lt;/STRONG&gt; is the name of the data query I created)&lt;/P&gt;&lt;PRE&gt;' *** Start of script for flow vdb_queryPedramTests_1473160746881 ***

' Define constants needed for accessing files
Const ForReading = 1, ForWriting = 2, ForAppending = 8

flowStatus = 0

scriptFilename = "E:\sas\config\Lev1\SchedulingServer\K_pedmob\vdb_queryPedramTests_1473160746881\vdb_queryPedramTests_1473160746881.vbs"

' Update date and time variable
curDateTime = Now()

' Create timestamp used in naming the status file
timeStamp = Left("0000", 4 - Len(Year(curDateTime))) &amp;amp; Year(curDateTime) &amp;amp; Left("00", 2 - Len(Month(curDateTime))) &amp;amp; Month(curDateTime) &amp;amp; Left("00", 2 - Len(Day(curDateTime))) &amp;amp; Day(curDateTime) &amp;amp; Left("00", 2 - Len(Hour(curDateTime))) &amp;amp; Hour(curDateTime) &amp;amp; Left("00", 2 - Len(Minute(curDateTime))) &amp;amp; Minute(curDateTime) &amp;amp; Left("00", 2 - Len(Second(curDateTime))) &amp;amp; Second(curDateTime)

statusFilename = "E:\sas\config\Lev1\SchedulingServer\K_pedmob\vdb_queryPedramTests_1473160746881\" &amp;amp; timeStamp &amp;amp; "_vdb_queryPedramTests_1473160746881_status.log"

' Initialize references to FileSystem and Shell objects
Set fileSys = Wscript.CreateObject("Scripting.FileSystemObject")
Set shell = Wscript.CreateObject("Wscript.Shell")

' Open status file
Set statusFile = fileSys.OpenTextFile(statusFilename, ForWriting, True)

' *** Start of flow ***

' Log start of flow to status file
statusFile.WriteLine("Flow STARTING...")

' *** No Dependencies ***

' *** Begin Job Event ***

' Update date and time variables
curDateTime = Now()
curDate = Left("00", 2 - Len(Month(curDateTime))) &amp;amp; Month(curDateTime) &amp;amp; "/" &amp;amp; Left("00", 2 - Len(Day(curDateTime))) &amp;amp; Day(curDateTime) &amp;amp; "/" &amp;amp; Left("0000", 4 - Len(Year(curDateTime))) &amp;amp; Year(curDateTime)
curTime = Left("00", 2 - Len(Hour(curDateTime))) &amp;amp; Hour(curDateTime) &amp;amp; ":" &amp;amp; Left("00", 2 - Len(Minute(curDateTime))) &amp;amp; Minute(curDateTime) &amp;amp; ":" &amp;amp; Left("00", 2 - Len(Second(curDateTime))) &amp;amp; Second(curDateTime)

' Log start of job to status file
statusFile.WriteLine("Job vdb_queryPedramTests_1473160746881_A5EW3E0G_BV000005 STARTING " &amp;amp; curDate &amp;amp; " " &amp;amp; curTime)

' Enable error handling
On Error Resume Next

' Execute job
errorLevel = shell.Run("E:\sas\config\Lev1\SASApp\BatchServer\sasbatch.bat -log E:\sas\config\Lev1\SASApp\BatchServer\Logs\vdb_queryPedramTests_1473160746881_#Y.#m.#d_#H.#M.#s.log -print E:\sas\config\Lev1\SASApp\BatchServer\Output\vdb_queryPedramTests_1473160746881.lst -batch -noterminal -logparm ""rollover=session""  -sysin E:\sas\config\Lev1\SASApp\SASEnvironment\SASCode\Jobs\vdb_queryPedramTests_1473160746881.sas", , True)

If Err.Number &amp;lt;&amp;gt; 0 Then
  status_A5EW3E0G_BV000005 = Err.Number
  Err.Clear
Else
  status_A5EW3E0G_BV000005 = errorLevel
End If

' Disable error handling
On Error Goto 0

' Update date and time variables
curDateTime = Now()
curDate = Left("00", 2 - Len(Month(curDateTime))) &amp;amp; Month(curDateTime) &amp;amp; "/" &amp;amp; Left("00", 2 - Len(Day(curDateTime))) &amp;amp; Day(curDateTime) &amp;amp; "/" &amp;amp; Left("0000", 4 - Len(Year(curDateTime))) &amp;amp; Year(curDateTime)
curTime = Left("00", 2 - Len(Hour(curDateTime))) &amp;amp; Hour(curDateTime) &amp;amp; ":" &amp;amp; Left("00", 2 - Len(Minute(curDateTime))) &amp;amp; Minute(curDateTime) &amp;amp; ":" &amp;amp; Left("00", 2 - Len(Second(curDateTime))) &amp;amp; Second(curDateTime)

' Log completion of job and exit code to status file
statusFile.WriteLine("Job vdb_queryPedramTests_1473160746881_A5EW3E0G_BV000005 COMPLETE " &amp;amp; curDate &amp;amp; " " &amp;amp; curTime &amp;amp; " status=" &amp;amp; status_A5EW3E0G_BV000005 &amp;amp; ".")

' Set flag indicating that job has executed
exec_A5EW3E0G_BV000005 = True

' Update flow exit code
If flowStatus = 0 Then
  flowStatus = status_A5EW3E0G_BV000005
End If

' *** End Job Event ***

' Update date and time variables
curDateTime = Now()
curDate = Left("00", 2 - Len(Month(curDateTime))) &amp;amp; Month(curDateTime) &amp;amp; "/" &amp;amp; Left("00", 2 - Len(Day(curDateTime))) &amp;amp; Day(curDateTime) &amp;amp; "/" &amp;amp; Left("0000", 4 - Len(Year(curDateTime))) &amp;amp; Year(curDateTime)
curTime = Left("00", 2 - Len(Hour(curDateTime))) &amp;amp; Hour(curDateTime) &amp;amp; ":" &amp;amp; Left("00", 2 - Len(Minute(curDateTime))) &amp;amp; Minute(curDateTime) &amp;amp; ":" &amp;amp; Left("00", 2 - Len(Second(curDateTime))) &amp;amp; Second(curDateTime)

' Log completion of flow and exit code to status file
statusFile.WriteLine("Flow vdb_queryPedramTests_1473160746881 COMPLETE " &amp;amp; curDate &amp;amp; " " &amp;amp; curTime &amp;amp; " status=" &amp;amp; flowStatus &amp;amp; ".")

' Close status file
statusFile.Close

' Exit flow and return status
Wscript.Quit(flowStatus)

' *** End of script for flow vdb_queryPedramTests_1473160746881 ***&lt;/PRE&gt;</description>
      <pubDate>Tue, 06 Sep 2016 12:18:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Scheduled-data-query-not-updating-the-data-source/m-p/296708#M5296</guid>
      <dc:creator>pedrammobedi</dc:creator>
      <dc:date>2016-09-06T12:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduled data query not updating the data source</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Scheduled-data-query-not-updating-the-data-source/m-p/296709#M5297</link>
      <description>&lt;P&gt;Then, just reading this file and as mentioned those are the locatins of your logs we need to read:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;-log E:\sas\config\Lev1\SASApp\BatchServer\Logs\vdb_que&lt;WBR /&gt;ryPedramTests_1473160746881_#Y.#m.#d_#H.#M.#s.log &lt;BR /&gt;-print E:\sas\config\Lev1\SASApp\BatchServer\Output\vdb_q&lt;WBR /&gt;ueryPedramTests_1473160746881.lst&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;Select the latest date that failed, of course.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2016 12:21:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Scheduled-data-query-not-updating-the-data-source/m-p/296709#M5297</guid>
      <dc:creator>JuanS_OCS</dc:creator>
      <dc:date>2016-09-06T12:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduled data query not updating the data source</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Scheduled-data-query-not-updating-the-data-source/m-p/296712#M5299</link>
      <description>&lt;P&gt;This is the contents of the latest log.&lt;/P&gt;&lt;PRE&gt;Flow STARTING...
Job vdb_queryPedramTests_1473160746881_A5EW3E0G_BV000005 STARTING 09/06/2016 14:20:59
Job vdb_queryPedramTests_1473160746881_A5EW3E0G_BV000005 COMPLETE 09/06/2016 14:21:04 status=0.
Flow vdb_queryPedramTests_1473160746881 COMPLETE 09/06/2016 14:21:04 status=0.&lt;/PRE&gt;</description>
      <pubDate>Tue, 06 Sep 2016 12:23:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Scheduled-data-query-not-updating-the-data-source/m-p/296712#M5299</guid>
      <dc:creator>pedrammobedi</dc:creator>
      <dc:date>2016-09-06T12:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduled data query not updating the data source</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Scheduled-data-query-not-updating-the-data-source/m-p/296713#M5300</link>
      <description>&lt;P&gt;You just checked one of the 2 logs that I refered, didn't you? Let's give a look to the other log.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2016 12:26:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Scheduled-data-query-not-updating-the-data-source/m-p/296713#M5300</guid>
      <dc:creator>JuanS_OCS</dc:creator>
      <dc:date>2016-09-06T12:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduled data query not updating the data source</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Scheduled-data-query-not-updating-the-data-source/m-p/296715#M5301</link>
      <description>&lt;P&gt;Yes sorry! But that folder is currently empty.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;E:\sas\config\Lev1\SASApp\BatchServer\Output&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2016 12:31:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Scheduled-data-query-not-updating-the-data-source/m-p/296715#M5301</guid>
      <dc:creator>pedrammobedi</dc:creator>
      <dc:date>2016-09-06T12:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduled data query not updating the data source</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Scheduled-data-query-not-updating-the-data-source/m-p/300850#M5477</link>
      <description>&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;Hi pedrammobedi,&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;If I understand correctly, you are trying to using the scheduling feature to update the data that is being imported from ODBC. As far as I know, the scheduling feature can’t be used in this way. You can create a schedule to keep the data query up-to-date, but not the data sources that the data query is based on.&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;Best regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;Lorrie&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2016 19:49:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Scheduled-data-query-not-updating-the-data-source/m-p/300850#M5477</guid>
      <dc:creator>Lorrie_SAS</dc:creator>
      <dc:date>2016-09-26T19:49:01Z</dc:date>
    </item>
  </channel>
</rss>

