<?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 Run a job until successful then stop in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Run-a-job-until-successful-then-stop/m-p/972145#M332685</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys and girls,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope you can help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When our Datawarehouse replication finishes every morning a flag gets set in a table to 1. This is a very simple table with only 1 field in it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I am trying to do is to continuously check until that flag is set to 1 from say a certain time in the morning right through till that flag is set whereby I then want to kick of a set of data loaders.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have set up a model that loads from that table and if the flag is 1 the model reloads successfully, else it fails but the problem is I can't schedule it to run continuously as this will then result in the models been executed continuously as well right throughout the day. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way in QVMC to continuously load a job until successful and then stop this job automatically until its scheduled to run the next day?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or is there another way of doing this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Marius&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Nov 2015 09:58:01 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-11-24T09:58:01Z</dc:date>
    <item>
      <title>Run a job until successful then stop</title>
      <link>https://community.qlik.com/t5/QlikView/Run-a-job-until-successful-then-stop/m-p/972145#M332685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys and girls,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope you can help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When our Datawarehouse replication finishes every morning a flag gets set in a table to 1. This is a very simple table with only 1 field in it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I am trying to do is to continuously check until that flag is set to 1 from say a certain time in the morning right through till that flag is set whereby I then want to kick of a set of data loaders.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have set up a model that loads from that table and if the flag is 1 the model reloads successfully, else it fails but the problem is I can't schedule it to run continuously as this will then result in the models been executed continuously as well right throughout the day. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way in QVMC to continuously load a job until successful and then stop this job automatically until its scheduled to run the next day?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or is there another way of doing this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Marius&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2015 09:58:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Run-a-job-until-successful-then-stop/m-p/972145#M332685</guid>
      <dc:creator />
      <dc:date>2015-11-24T09:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: Run a job until successful then stop</title>
      <link>https://community.qlik.com/t5/QlikView/Run-a-job-until-successful-then-stop/m-p/972146#M332686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please use sleep function in your script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The &lt;SPAN class="Bold"&gt;sleep&lt;/SPAN&gt; statement pauses script execution for &lt;SPAN class="Italic"&gt;n&lt;/SPAN&gt; milliseconds, where &lt;SPAN class="Italic"&gt;n&lt;/SPAN&gt; is a positive integer no larger than 3600000 (i.e. 1 hour). The value may be an expression. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The syntax is:&lt;/P&gt;&lt;P class="syntax"&gt;&lt;SPAN class="Bold"&gt;sleep&lt;/SPAN&gt; &lt;SPAN class="Italic"&gt;n&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="example"&gt;Examples:&lt;/P&gt;&lt;P class="Code"&gt;sleep 10000;&lt;/P&gt;&lt;P class="Code"&gt;sleep t*1000;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2015 10:04:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Run-a-job-until-successful-then-stop/m-p/972146#M332686</guid>
      <dc:creator>karthikeyan1504</dc:creator>
      <dc:date>2015-11-24T10:04:36Z</dc:date>
    </item>
    <item>
      <title>Re: Run a job until successful then stop</title>
      <link>https://community.qlik.com/t5/QlikView/Run-a-job-until-successful-then-stop/m-p/972147#M332687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What you intend to do is not the most efficient usage of computer resources.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Usually this kind of workflow is handled the other way around. For example, you can let your DB/Datawarehouse trigger an external action upon completing the replication step (for example SQL Server has so-called agents to do that).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The external action consists of a simple batch/command file that sends an EDX signal to the QMS, and triggers a task (or any number of tasks you want). You can use &lt;A href="https://community.qlik.com/docs/DOC-5111"&gt;QMSEDX Enhanced&lt;/A&gt; to do that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That way, your QlikView server won't be wasting cpu cycles, RAM or Reload engines just to monitor a flag somewhere.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2015 10:06:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Run-a-job-until-successful-then-stop/m-p/972147#M332687</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-11-24T10:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: Run a job until successful then stop</title>
      <link>https://community.qlik.com/t5/QlikView/Run-a-job-until-successful-then-stop/m-p/972148#M332688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome thanks Peter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2015 10:09:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Run-a-job-until-successful-then-stop/m-p/972148#M332688</guid>
      <dc:creator />
      <dc:date>2015-11-24T10:09:34Z</dc:date>
    </item>
  </channel>
</rss>

