<?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 Will Flow be double triggered by file arrival event? in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Will-Flow-be-double-triggered-by-file-arrival-event/m-p/105819#M1177</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let's say we schedule a flow with the file arrival event and the file is ../dir/*.csv.&lt;/P&gt;&lt;P&gt;If in a short time, e.g. 5 minutes, two csv files are uploaded to ../dir/, will the flow be triggered twice?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Aug 2013 20:41:30 GMT</pubDate>
    <dc:creator>ASASProgrammer</dc:creator>
    <dc:date>2013-08-08T20:41:30Z</dc:date>
    <item>
      <title>Will Flow be double triggered by file arrival event?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Will-Flow-be-double-triggered-by-file-arrival-event/m-p/105819#M1177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let's say we schedule a flow with the file arrival event and the file is ../dir/*.csv.&lt;/P&gt;&lt;P&gt;If in a short time, e.g. 5 minutes, two csv files are uploaded to ../dir/, will the flow be triggered twice?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Aug 2013 20:41:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Will-Flow-be-double-triggered-by-file-arrival-event/m-p/105819#M1177</guid>
      <dc:creator>ASASProgrammer</dc:creator>
      <dc:date>2013-08-08T20:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: Will Flow be double triggered by file arrival event?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Will-Flow-be-double-triggered-by-file-arrival-event/m-p/105820#M1178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the event is "file arrival" only then I would expect that the flow gets triggered for each and every single matching trigger file file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you don't want this to happen then you would have to define a more advanced expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Aug 2013 11:44:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Will-Flow-be-double-triggered-by-file-arrival-event/m-p/105820#M1178</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2013-08-09T11:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: Will Flow be double triggered by file arrival event?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Will-Flow-be-double-triggered-by-file-arrival-event/m-p/105821#M1179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Patrick,&lt;/P&gt;&lt;P&gt;Is there any documentation on developing the expression?&lt;/P&gt;&lt;P&gt;The contents shipped with SMC don't contain the details.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Aug 2013 13:06:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Will-Flow-be-double-triggered-by-file-arrival-event/m-p/105821#M1179</guid>
      <dc:creator>ASASProgrammer</dc:creator>
      <dc:date>2013-08-09T13:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: Will Flow be double triggered by file arrival event?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Will-Flow-be-double-triggered-by-file-arrival-event/m-p/105822#M1180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think there is much documentation about this.&lt;/P&gt;&lt;P&gt;What Patrick means is that you need to evaluate how this trigger is supposed to work. Maybe you can use some other wild card matching than *?&lt;/P&gt;&lt;P&gt;What is your requirement?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Aug 2013 13:26:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Will-Flow-be-double-triggered-by-file-arrival-event/m-p/105822#M1180</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2013-08-09T13:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: Will Flow be double triggered by file arrival event?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Will-Flow-be-double-triggered-by-file-arrival-event/m-p/105823#M1181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An easy way to go could be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. File trigger on "arrival" using your wildcard matching.&lt;/P&gt;&lt;P&gt;2. SAS job querying the directory with the trigger files and checking if there is more than one matching the file pattern having a creation time &amp;gt;= system time minus 5 minutes&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Exactly one matching file: SAS job creates a new trigger file with a different naming pattern&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - More than one matching file: SAS job deletes any trigger files with the new naming pattern (if any left over from a previous run).&lt;/P&gt;&lt;P&gt;3. File trigger on "exist" looking for this new trigger file with the different naming pattern&lt;/P&gt;&lt;P&gt;4. Rest of flow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LSF itself has a rich command syntax but only a small subset is implemented into SAS Metadata (eg. the file trigger "arrival" which then creates the corresponding LSF command). Instead of using a SAS program checking for trigger files as I've suggested you could also write a script with LSF commands - "bhist" for example lets you query for job flows executed.&lt;/P&gt;&lt;P&gt;If not licensed separately then I believe LSF comes as an OEM version and only allows you to schedule SAS programs. So eventually you need to write a SAS programs which then calls the LSF script in order to submit such commands.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;About documentation:&lt;/P&gt;&lt;P&gt;Schedule Manager documentation is available from within SMC help. There is also some online doc available, eg. here &lt;A href="http://support.sas.com/documentation/cdl/en/scheduleug/64110/PDF/default/scheduleug.pdf" title="http://support.sas.com/documentation/cdl/en/scheduleug/64110/PDF/default/scheduleug.pdf"&gt;http://support.sas.com/documentation/cdl/en/scheduleug/64110/PDF/default/scheduleug.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I found this - a bit outdated - paper which I liked quite a bit: &lt;A href="http://support.sas.com/resources/papers/SASScheduling.pdf" title="http://support.sas.com/resources/papers/SASScheduling.pdf"&gt;http://support.sas.com/resources/papers/SASScheduling.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can get LSF documetation directly from Platform Computing (it's now owned by IBM) or also from the SAS site: &lt;A href="http://support.sas.com/rnd/scalability/platform/index.html" title="http://support.sas.com/rnd/scalability/platform/index.html"&gt; Scalability Community: Platform Suite for SAS &lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Aug 2013 03:06:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Will-Flow-be-double-triggered-by-file-arrival-event/m-p/105823#M1181</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2013-08-10T03:06:59Z</dc:date>
    </item>
  </channel>
</rss>

