<?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 Smart scheduling in SAS VA in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Smart-scheduling-in-SAS-VA/m-p/370892#M7490</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm using SAS VA 7.4 and I have access to SAS Studio.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to find a way to automatically schedule queries in SAS VA.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The solution must be smart enough to not run some queries if other queries failed.&lt;/P&gt;&lt;P&gt;The only solution I have is to schedule jobs manually or write programs in sas studio, and then&lt;/P&gt;&lt;P&gt;&amp;nbsp;set proper settings manually in management console.&lt;/P&gt;&lt;P&gt;This whole process seems to me like manual work-around, but I don't have too much experience nor knowledge&lt;/P&gt;&lt;P&gt;&amp;nbsp;to think otherwise.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question is if there is any method to automatically schedule queries in sas va, so they would be dependent on each other&lt;/P&gt;&lt;P&gt;&amp;nbsp;(for example if one query fails, then others will not run or I will get some information in system)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Tue, 27 Jun 2017 12:43:02 GMT</pubDate>
    <dc:creator>jakubniescior</dc:creator>
    <dc:date>2017-06-27T12:43:02Z</dc:date>
    <item>
      <title>Smart scheduling in SAS VA</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Smart-scheduling-in-SAS-VA/m-p/370892#M7490</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm using SAS VA 7.4 and I have access to SAS Studio.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to find a way to automatically schedule queries in SAS VA.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The solution must be smart enough to not run some queries if other queries failed.&lt;/P&gt;&lt;P&gt;The only solution I have is to schedule jobs manually or write programs in sas studio, and then&lt;/P&gt;&lt;P&gt;&amp;nbsp;set proper settings manually in management console.&lt;/P&gt;&lt;P&gt;This whole process seems to me like manual work-around, but I don't have too much experience nor knowledge&lt;/P&gt;&lt;P&gt;&amp;nbsp;to think otherwise.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question is if there is any method to automatically schedule queries in sas va, so they would be dependent on each other&lt;/P&gt;&lt;P&gt;&amp;nbsp;(for example if one query fails, then others will not run or I will get some information in system)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jun 2017 12:43:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Smart-scheduling-in-SAS-VA/m-p/370892#M7490</guid>
      <dc:creator>jakubniescior</dc:creator>
      <dc:date>2017-06-27T12:43:02Z</dc:date>
    </item>
    <item>
      <title>Re: Smart scheduling in SAS VA</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Smart-scheduling-in-SAS-VA/m-p/370907#M7491</link>
      <description>&lt;P&gt;Queries created in the Visual Analytics Data Builder query can be run on demand, or scheduled to run at a preferred time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use the Visual Analytics Data Builder to create queries and/or tailor the processing with some pre/postcode and/or completely replace the generated code with user-written code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Multi-query dependencies - not sure if/how VA would handle that&amp;nbsp;&lt;EM&gt;(unless they were all part of a single user-written query)&lt;/EM&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope that helps.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jun 2017 13:10:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Smart-scheduling-in-SAS-VA/m-p/370907#M7491</guid>
      <dc:creator>AndrewHowell</dc:creator>
      <dc:date>2017-06-27T13:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: Smart scheduling in SAS VA</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Smart-scheduling-in-SAS-VA/m-p/370929#M7492</link>
      <description>&lt;P&gt;Thank you for your reply Andrew,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From what I found, the SAS VA is limited in case of scheduling. It does not have advanced scheduling options in itself.&lt;/P&gt;&lt;P&gt;That is why I&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope there exists some solution (even scripting in other tools having only SAS VA licence, like SAS Studio, VBS), which enables to&amp;nbsp;create schedules with query dependencies&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jun 2017 13:43:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Smart-scheduling-in-SAS-VA/m-p/370929#M7492</guid>
      <dc:creator>jakubniescior</dc:creator>
      <dc:date>2017-06-27T13:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: Smart scheduling in SAS VA</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Smart-scheduling-in-SAS-VA/m-p/371787#M7505</link>
      <description>&lt;P&gt;I have found a solution to this by using a SQL job that I can put conditions on. SAS allows you to refresh data using a command line.&amp;nbsp;This give you a large amount of flexibility in scheduling.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A person can use a batch file with just the command&lt;/P&gt;&lt;P&gt;cmd.exe /c C:\SAS\Config\Lev1\SASApp\BatchServer\sasbatch.bat -log C:\SAS\Config\Lev1\SASApp\BatchServer\Logs\vdb_JOBNAME_#Y.#m.#d_#H.#M.#s.log&amp;nbsp; -batch -noterminal -logparm "rollover=session"&amp;nbsp; -sysin C:\SAS\Config\Lev1\SASApp\SASEnvironment\SASCode\Jobs\vdb_JOBNAME.sas&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want to create the SQL Job, use this script.&lt;/P&gt;&lt;P&gt;Function New-RemoteProcess {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Param([string]$computername=$env:computername,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [string]$cmd&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $ErrorActionPreference="SilentlyContinue"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Trap {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Continue&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [wmiclass]$wmi="\\$computername\root\cimv2:win32_process"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #bail out if the object didn't get created&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (!$wmi) {return}&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $remote=$wmi.Create($cmd)&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;New-RemoteProcess -comp "SASSERVER" -cmd 'cmd.exe /c C:\SAS\Config\Lev1\SASApp\BatchServer\sasbatch.bat -log C:\SAS\Config\Lev1\SASApp\BatchServer\Logs\vdb_JOBNAME_#Y.#m.#d_#H.#M.#s.log&amp;nbsp; -batch -noterminal -logparm "rollover=session"&amp;nbsp; -sysin C:\SAS\Config\Lev1\SASApp\SASEnvironment\SASCode\Jobs\vdb_JOBNAME.sas'&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2017 16:09:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Smart-scheduling-in-SAS-VA/m-p/371787#M7505</guid>
      <dc:creator>DrTwoLittle</dc:creator>
      <dc:date>2017-06-29T16:09:06Z</dc:date>
    </item>
    <item>
      <title>Re: Smart scheduling in SAS VA</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Smart-scheduling-in-SAS-VA/m-p/372130#M7509</link>
      <description>&lt;P&gt;Thank you DrTwoLittle for your answer.&lt;/P&gt;&lt;P&gt;I like it, but it still does not answer to my problem.&lt;/P&gt;&lt;P&gt;How I understand your solution, is that it just creates the job.&lt;/P&gt;&lt;P&gt;The problem is where I want to create scheduled jobs relationships.&lt;/P&gt;&lt;P&gt;The scheduled jobs are meant to run by itself when the scheduler want it, and I want to automatically create scheduled dependencies&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2017 12:31:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Smart-scheduling-in-SAS-VA/m-p/372130#M7509</guid>
      <dc:creator>jakubniescior</dc:creator>
      <dc:date>2017-06-30T12:31:55Z</dc:date>
    </item>
  </channel>
</rss>

