<?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 Schedule process after event in Developers</title>
    <link>https://communities.sas.com/t5/Developers/Schedule-process-after-event/m-p/45627#M2874</link>
    <description>I am working with my IT department to try to set up a way to run reports after the data source is refreshed.  Currently, the data refreshes daily and monthly, and after each refresh, a file is placed on the server so other programs can be triggered to run.  My question is, can SAS be set up to recognize that a file has been placed on a server, or check a table for an update, in order to trigger a SAS routine?</description>
    <pubDate>Wed, 17 Jun 2009 13:51:22 GMT</pubDate>
    <dc:creator>cjohnson</dc:creator>
    <dc:date>2009-06-17T13:51:22Z</dc:date>
    <item>
      <title>Schedule process after event</title>
      <link>https://communities.sas.com/t5/Developers/Schedule-process-after-event/m-p/45627#M2874</link>
      <description>I am working with my IT department to try to set up a way to run reports after the data source is refreshed.  Currently, the data refreshes daily and monthly, and after each refresh, a file is placed on the server so other programs can be triggered to run.  My question is, can SAS be set up to recognize that a file has been placed on a server, or check a table for an update, in order to trigger a SAS routine?</description>
      <pubDate>Wed, 17 Jun 2009 13:51:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Schedule-process-after-event/m-p/45627#M2874</guid>
      <dc:creator>cjohnson</dc:creator>
      <dc:date>2009-06-17T13:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: Schedule process after event</title>
      <link>https://communities.sas.com/t5/Developers/Schedule-process-after-event/m-p/45628#M2875</link>
      <description>Are you using EBI?&lt;BR /&gt;
&lt;BR /&gt;
If so, then LSF allows you to set up dependencies such as time events, file events or job events.  For example, two of my jobs at work do the following;&lt;BR /&gt;
4 DI jobs execute at a certain time.&lt;BR /&gt;
when all four jobs have completed another 6 jobs run.&lt;BR /&gt;
at another time (8pm) another 3 jobs start running because users are no longer entering data.&lt;BR /&gt;
when all jobs have completed, another job runs.  This produces a file on our server&lt;BR /&gt;
&lt;BR /&gt;
The second job looks for this file and when it is created, the job fires and deletes the text file from the previous job.&lt;BR /&gt;
&lt;BR /&gt;
If you are not using EBI/LSF then you could either;&lt;BR /&gt;
&lt;BR /&gt;
1.  Look at sashelp.vtable or do a proc contents to check the modified date of the file&lt;BR /&gt;
or &lt;BR /&gt;
2.  Set up a systask command, x command or filename pipe to execute an operating system process that checks for the existence of a file.&lt;BR /&gt;
&lt;BR /&gt;
3.  Have your report(s) wrapped with a macro that uses the sleep function.  This will halt execution for a given period.  Depending on your choice of validation, you will need to do a periodic check that the condition you set has been met. (either table is updated by looking at dictionary tables or the file exists).  When the condition is true, execute reports.&lt;BR /&gt;
&lt;BR /&gt;
Hope that makes sense.

Message was edited by: Cameron Lawson</description>
      <pubDate>Wed, 17 Jun 2009 14:46:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Schedule-process-after-event/m-p/45628#M2875</guid>
      <dc:creator>CameronLawson</dc:creator>
      <dc:date>2009-06-17T14:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: Schedule process after event</title>
      <link>https://communities.sas.com/t5/Developers/Schedule-process-after-event/m-p/45629#M2876</link>
      <description>Why don't you use a directory watch utility that can trigger the execution of a process upon creating or editing a file in a directory. For example, you could have a command file run SAS on the subject file.</description>
      <pubDate>Wed, 17 Jun 2009 15:49:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Schedule-process-after-event/m-p/45629#M2876</guid>
      <dc:creator>DonH</dc:creator>
      <dc:date>2009-06-17T15:49:35Z</dc:date>
    </item>
  </channel>
</rss>

