<?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: Is it possible to get the name of a Process Manager Flow Job and pass it to a dependent job in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/Is-it-possible-to-get-the-name-of-a-Process-Manager-Flow-Job-and/m-p/455226#M12912</link>
    <description>&lt;P&gt;Just had a thought about this - there is a file that sits behind LSF called lsb.events that contains details about each job as well as their exit status.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You could write some code that would periodically read this file and then write out .ok files for any or all jobs that complete. These ok files could then be used in other flows. Once all flows are completed you would need another job that would clean up all the .ok files that got created so it wouldn't cause problems when the flow was executed again the following day.&lt;/P&gt;</description>
    <pubDate>Wed, 18 Apr 2018 14:48:23 GMT</pubDate>
    <dc:creator>andrewboyd</dc:creator>
    <dc:date>2018-04-18T14:48:23Z</dc:date>
    <item>
      <title>Is it possible to get the name of a Process Manager Flow Job and pass it to a dependent job</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Is-it-possible-to-get-the-name-of-a-Process-Manager-Flow-Job-and/m-p/452759#M12838</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm wondering if someone can help - or can point out I'm trying to do something that is impossible!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We currently have a Process Flow that contains around 130 individual jobs with multiple inter dependencies. The flow is becoming incredibly slow to edit and difficult to maintain.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was looking at splitting it out into several sub flows to make it easier to handle but I'm unable to do this because of the dependencies between jobs.&lt;BR /&gt;&lt;BR /&gt;The best solution I can come up with is to make use of trigger files so when a job successfully completes it places a file on the server and the dependent jobs in the subflows can then kick off when the file arrives. However I don't want to have to update and deploy 130+ jobs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to create some SAS code that could pick up the name of the flow job and create a trigger file with that name that could be wrapped up as a reusable job?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So instead of:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;JobA----------&amp;gt;JobB&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would have&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;JobA--------&amp;gt;newTriggerJobA.OK&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;newTriggerJobA.OK------------&amp;gt;JobB&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd then be able to split out the flow (which will be painful enough) into multiples and drop the new code in wherever there is a dependency to create the trigger file and the dependent job then just has a file trigger dependency.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hopefully that makes sense! Thanks for any help offered.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2018 10:31:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Is-it-possible-to-get-the-name-of-a-Process-Manager-Flow-Job-and/m-p/452759#M12838</guid>
      <dc:creator>rc7782</dc:creator>
      <dc:date>2018-04-10T10:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to get the name of a Process Manager Flow Job and pass it to a dependent job</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Is-it-possible-to-get-the-name-of-a-Process-Manager-Flow-Job-and/m-p/453736#M12870</link>
      <description>Hello rc7782,&lt;BR /&gt;I would recommend opening a Technical Support track and I work directly with you on this issue. I would like to dig a deeper into this question. You can mention my name when you open the track.&lt;BR /&gt;Thanks&lt;BR /&gt;Bob Maggio</description>
      <pubDate>Thu, 12 Apr 2018 19:58:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Is-it-possible-to-get-the-name-of-a-Process-Manager-Flow-Job-and/m-p/453736#M12870</guid>
      <dc:creator>Bob7</dc:creator>
      <dc:date>2018-04-12T19:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to get the name of a Process Manager Flow Job and pass it to a dependent job</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Is-it-possible-to-get-the-name-of-a-Process-Manager-Flow-Job-and/m-p/455226#M12912</link>
      <description>&lt;P&gt;Just had a thought about this - there is a file that sits behind LSF called lsb.events that contains details about each job as well as their exit status.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You could write some code that would periodically read this file and then write out .ok files for any or all jobs that complete. These ok files could then be used in other flows. Once all flows are completed you would need another job that would clean up all the .ok files that got created so it wouldn't cause problems when the flow was executed again the following day.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Apr 2018 14:48:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Is-it-possible-to-get-the-name-of-a-Process-Manager-Flow-Job-and/m-p/455226#M12912</guid>
      <dc:creator>andrewboyd</dc:creator>
      <dc:date>2018-04-18T14:48:23Z</dc:date>
    </item>
  </channel>
</rss>

