<?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 Sleep Function works? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-Sleep-Function-works/m-p/871284#M993872</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Can anyone explain what is the use of sleep function? I have read that it is used to halt the execution based on the value given in milliseconds. Can anyone explain with an example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Jul 2015 13:56:56 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-07-14T13:56:56Z</dc:date>
    <item>
      <title>How Sleep Function works?</title>
      <link>https://community.qlik.com/t5/QlikView/How-Sleep-Function-works/m-p/871284#M993872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Can anyone explain what is the use of sleep function? I have read that it is used to halt the execution based on the value given in milliseconds. Can anyone explain with an example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2015 13:56:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-Sleep-Function-works/m-p/871284#M993872</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-14T13:56:56Z</dc:date>
    </item>
    <item>
      <title>Re: How Sleep Function works?</title>
      <link>https://community.qlik.com/t5/QlikView/How-Sleep-Function-works/m-p/871285#M993873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See QV Desktop help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;sleep 10000;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;will pause script execution for 10 seconds. After that delay, your script will resume.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The sleep parameter can be an expression or a fixed value. But the resulting value can be no larger than 3600000 (i.e. one hour).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Edit] corrected spelling erors, grrrr....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2015 14:04:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-Sleep-Function-works/m-p/871285#M993873</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-07-14T14:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: How Sleep Function works?</title>
      <link>https://community.qlik.com/t5/QlikView/How-Sleep-Function-works/m-p/871286#M993874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&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&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;If Date(floor(today()))=Date('14/07/2015')&lt;/TD&gt;&lt;TD&gt;then&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SLEEP 10*1000;&lt;/P&gt;&lt;P&gt;END IF&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2015 14:05:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-Sleep-Function-works/m-p/871286#M993874</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-07-14T14:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: How Sleep Function works?</title>
      <link>https://community.qlik.com/t5/QlikView/How-Sleep-Function-works/m-p/871287#M993875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&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;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, 14 Jul 2015 14:06:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-Sleep-Function-works/m-p/871287#M993875</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2015-07-14T14:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: How Sleep Function works?</title>
      <link>https://community.qlik.com/t5/QlikView/How-Sleep-Function-works/m-p/871288#M993876</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;Sleep also help if you have read write lock issue. You can introduce sleep to halt your script for a period.&lt;/P&gt;&lt;P&gt;Also you can check this blog as well &lt;A href="http://www.infinityinsight.com/blog/?p=272" title="http://www.infinityinsight.com/blog/?p=272"&gt;Pausing &amp;amp; Stopping QlikView Scripts – Infinity Insight Blog&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2015 14:09:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-Sleep-Function-works/m-p/871288#M993876</guid>
      <dc:creator>Gabriel</dc:creator>
      <dc:date>2015-07-14T14:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: How Sleep Function works?</title>
      <link>https://community.qlik.com/t5/QlikView/How-Sleep-Function-works/m-p/871289#M993877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its use? You mean you have a solution and now you are looking for a situation to use it in?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Imagine that you have to wait for a file to appear in a folder after launching a job with the &lt;SPAN style="font-family: 'courier new', courier;"&gt;EXECUTE;&lt;/SPAN&gt; statement. No need to suck up all CPU cycles in a tight loop that keeps checking for this file but doesn't relinquish control (causing the other application to never create the file in the first place). In your FOR loop, check every 10 seconds by inserting a &lt;SPAN style="font-family: 'courier new', courier;"&gt;sleep 10000;&lt;/SPAN&gt; statement that sleeps for 10 seconds while other processes can do their part of the deal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2015 14:12:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-Sleep-Function-works/m-p/871289#M993877</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-07-14T14:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: How Sleep Function works?</title>
      <link>https://community.qlik.com/t5/QlikView/How-Sleep-Function-works/m-p/871290#M993878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Peter, that was really helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2015 16:09:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-Sleep-Function-works/m-p/871290#M993878</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-14T16:09:00Z</dc:date>
    </item>
  </channel>
</rss>

