<?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 How to schedule data queries in SAS Visual Analytics in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-schedule-data-queries-in-SAS-Visual-Analytics/m-p/199163#M1701</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Note: The information in this article applies to SAS Visual Analytics, all versions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you create data queries for reports and explorations and you want them to reflect the most current data, you can set your data queries to run periodically so that they pick up the most recent data that was imported. This allows you to skip running the data query manually when the data changes. There are many different options to do this in terms of frequency.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To set up a data query schedule, you need to create a series of triggers. Each trigger is associated with a date and time. You can create a trigger that will run just once, multiple times, or at a regular interval.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To get started:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;After you finish creating your data query, save by clicking the save icon.&lt;/LI&gt;&lt;LI&gt;Click the scheduler icon to set the schedule for the query.&lt;/LI&gt;&lt;LI&gt;In the Schedule window, select &lt;STRONG&gt;Select one or more triggers for this query.&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;Click &lt;STRONG&gt;New Time Event&lt;/STRONG&gt; to create the triggers for your schedule.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;H2&gt;Schedule setup&lt;/H2&gt;&lt;P&gt;&lt;STRONG&gt;Running the query on specific dates and times&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let’s say you want to run a data query one time at a specific date and time in the future.&amp;nbsp; This case is useful if you want the data query to run on specific dates or times that don’t fall into a regular interval. You can create as many ‘one time only’ triggers as you want. In this case, you will just need to set them up one at a time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To run a query on specific dates and times:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Select &lt;STRONG&gt;One time only&lt;/STRONG&gt;.&lt;/LI&gt;&lt;LI&gt;Set the date and time, and then click &lt;STRONG&gt;OK&lt;/STRONG&gt;.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will see the event show up in the trigger list. Repeat the steps for any additional triggers that you want to set up. After you are finished making your schedule changes, make sure you click save icon in the workspace to save again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Running the query at a regular interval&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also set the query to run at a regular interval:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Select &lt;STRONG&gt;More than once&lt;/STRONG&gt;.&lt;/LI&gt;&lt;LI&gt;Select the frequency in which you want the query to run. For example, every day from Monday, 7/20/15, through Friday, 7/27/15, at 4:26pm.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;You will see the event show up in the trigger list. Repeat the steps for any additional triggers that you want to set up. After you are finished making your schedule changes, make sure you click the save icon in the workspace to save again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here’s some &lt;A href="http://support.sas.com/documentation/cdl/en/vaug/68648/HTML/default/viewer.htm#n0vdu3zqycuxh0n13v3lnlz0w2k7.htm"&gt;more information&lt;/A&gt; about creating the schedule for a data query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H2&gt;Modifying a scheduled data query&lt;/H2&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you modify a scheduled data query, you will need to resave the triggers. Otherwise, the schedule will no longer run. You do not need to set the triggers up again, however. Here’s the steps to get the schedule to run:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;After you make your changes to the data query, click the save icon to save your changes.&lt;/LI&gt;&lt;LI&gt;Click the scheduler icon to open the Schedule window. The triggers that you previously set up will appear in the list.&lt;/LI&gt;&lt;LI&gt;Click &lt;STRONG&gt;OK&lt;/STRONG&gt; to exit from the Schedule window.&lt;/LI&gt;&lt;/OL&gt;&lt;H2&gt;Deleting the schedule for a data query&lt;/H2&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To permanently delete the schedule for a data query, you must use SAS Management Console. However, from SAS Visual Analytics, you can stop the data query from running:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Open the data query.&lt;/LI&gt;&lt;LI&gt;Click the scheduler icon to open the Schedule window. You may have to click the save icon to save beforehand.&lt;/LI&gt;&lt;LI&gt;Highlight the trigger for the schedule that you want to delete, and then click &lt;STRONG&gt;Delete&lt;/STRONG&gt;.&lt;/LI&gt;&lt;LI&gt;Click &lt;STRONG&gt;OK&lt;/STRONG&gt;, and then click the save icon to save.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Note: If you delete the last trigger in the list, and then you attempt to click &lt;STRONG&gt;OK&lt;/STRONG&gt; to exit from the Schedule window, you will receive the following error message: "Cannot update the scheduled query. One or more events must be available." To bypass this, you must run the query one more time in order to exit from the window. Select &lt;STRONG&gt;Run now&lt;/STRONG&gt; before clicking &lt;STRONG&gt;OK&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's some &lt;A href="http://support.sas.com/documentation/cdl/en/vaug/68648/HTML/default/viewer.htm#n1llqhngohfc4bn1gisq1i62t68w.htm"&gt;more information&lt;/A&gt; about scheduling data queries.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Aug 2015 15:06:09 GMT</pubDate>
    <dc:creator>Lorrie_SAS</dc:creator>
    <dc:date>2015-08-14T15:06:09Z</dc:date>
    <item>
      <title>How to schedule data queries in SAS Visual Analytics</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-schedule-data-queries-in-SAS-Visual-Analytics/m-p/199163#M1701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Note: The information in this article applies to SAS Visual Analytics, all versions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you create data queries for reports and explorations and you want them to reflect the most current data, you can set your data queries to run periodically so that they pick up the most recent data that was imported. This allows you to skip running the data query manually when the data changes. There are many different options to do this in terms of frequency.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To set up a data query schedule, you need to create a series of triggers. Each trigger is associated with a date and time. You can create a trigger that will run just once, multiple times, or at a regular interval.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To get started:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;After you finish creating your data query, save by clicking the save icon.&lt;/LI&gt;&lt;LI&gt;Click the scheduler icon to set the schedule for the query.&lt;/LI&gt;&lt;LI&gt;In the Schedule window, select &lt;STRONG&gt;Select one or more triggers for this query.&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;Click &lt;STRONG&gt;New Time Event&lt;/STRONG&gt; to create the triggers for your schedule.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;H2&gt;Schedule setup&lt;/H2&gt;&lt;P&gt;&lt;STRONG&gt;Running the query on specific dates and times&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let’s say you want to run a data query one time at a specific date and time in the future.&amp;nbsp; This case is useful if you want the data query to run on specific dates or times that don’t fall into a regular interval. You can create as many ‘one time only’ triggers as you want. In this case, you will just need to set them up one at a time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To run a query on specific dates and times:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Select &lt;STRONG&gt;One time only&lt;/STRONG&gt;.&lt;/LI&gt;&lt;LI&gt;Set the date and time, and then click &lt;STRONG&gt;OK&lt;/STRONG&gt;.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will see the event show up in the trigger list. Repeat the steps for any additional triggers that you want to set up. After you are finished making your schedule changes, make sure you click save icon in the workspace to save again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Running the query at a regular interval&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also set the query to run at a regular interval:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Select &lt;STRONG&gt;More than once&lt;/STRONG&gt;.&lt;/LI&gt;&lt;LI&gt;Select the frequency in which you want the query to run. For example, every day from Monday, 7/20/15, through Friday, 7/27/15, at 4:26pm.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;You will see the event show up in the trigger list. Repeat the steps for any additional triggers that you want to set up. After you are finished making your schedule changes, make sure you click the save icon in the workspace to save again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here’s some &lt;A href="http://support.sas.com/documentation/cdl/en/vaug/68648/HTML/default/viewer.htm#n0vdu3zqycuxh0n13v3lnlz0w2k7.htm"&gt;more information&lt;/A&gt; about creating the schedule for a data query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H2&gt;Modifying a scheduled data query&lt;/H2&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you modify a scheduled data query, you will need to resave the triggers. Otherwise, the schedule will no longer run. You do not need to set the triggers up again, however. Here’s the steps to get the schedule to run:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;After you make your changes to the data query, click the save icon to save your changes.&lt;/LI&gt;&lt;LI&gt;Click the scheduler icon to open the Schedule window. The triggers that you previously set up will appear in the list.&lt;/LI&gt;&lt;LI&gt;Click &lt;STRONG&gt;OK&lt;/STRONG&gt; to exit from the Schedule window.&lt;/LI&gt;&lt;/OL&gt;&lt;H2&gt;Deleting the schedule for a data query&lt;/H2&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To permanently delete the schedule for a data query, you must use SAS Management Console. However, from SAS Visual Analytics, you can stop the data query from running:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Open the data query.&lt;/LI&gt;&lt;LI&gt;Click the scheduler icon to open the Schedule window. You may have to click the save icon to save beforehand.&lt;/LI&gt;&lt;LI&gt;Highlight the trigger for the schedule that you want to delete, and then click &lt;STRONG&gt;Delete&lt;/STRONG&gt;.&lt;/LI&gt;&lt;LI&gt;Click &lt;STRONG&gt;OK&lt;/STRONG&gt;, and then click the save icon to save.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Note: If you delete the last trigger in the list, and then you attempt to click &lt;STRONG&gt;OK&lt;/STRONG&gt; to exit from the Schedule window, you will receive the following error message: "Cannot update the scheduled query. One or more events must be available." To bypass this, you must run the query one more time in order to exit from the window. Select &lt;STRONG&gt;Run now&lt;/STRONG&gt; before clicking &lt;STRONG&gt;OK&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's some &lt;A href="http://support.sas.com/documentation/cdl/en/vaug/68648/HTML/default/viewer.htm#n1llqhngohfc4bn1gisq1i62t68w.htm"&gt;more information&lt;/A&gt; about scheduling data queries.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 15:06:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-schedule-data-queries-in-SAS-Visual-Analytics/m-p/199163#M1701</guid>
      <dc:creator>Lorrie_SAS</dc:creator>
      <dc:date>2015-08-14T15:06:09Z</dc:date>
    </item>
  </channel>
</rss>

