<?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: Issue Regarding Sleep Function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Issue-Regarding-Sleep-Function/m-p/397208#M1272869</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1 hour appears to be the maximum period for Sleep ...&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;Try using two sleep commands 3600*1000 then 1800*1000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;flipside&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Jan 2013 10:30:21 GMT</pubDate>
    <dc:creator>flipside</dc:creator>
    <dc:date>2013-01-07T10:30:21Z</dc:date>
    <item>
      <title>Issue Regarding Sleep Function</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-Regarding-Sleep-Function/m-p/397207#M1272866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am facing a issue while I am using Sleep Function in the Script. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If floor(today())=floor(WeekEnd(Today())) Then&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SLEEP 5400*1000&lt;/P&gt;&lt;P&gt;ENDIF &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ODBC CONNECT TO ***************************************************************************** ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My reload starts at 5:45 AM that means when it will find Sunday it will sleep for 1 Hr and 30 Mins that means it will wake up at 7:15 AM but ENDIF executed at 6:45 AM that is exactly after 1 Hr. And i am observing this from past two weeks. earlier i was using 3600*1000 so in that condition it was fine but in current condition ENDIF should execute at 7:15 AM but it is not &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1/6/2013 5:45:01 AM:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Execution started.&lt;/P&gt;&lt;P&gt;1/6/2013 5:45:01 AM: 0019&amp;nbsp; If floor(today())=floor(WeekEnd(Today())) Then &lt;/P&gt;&lt;P&gt;1/6/2013 5:45:01 AM: 0020&amp;nbsp;&amp;nbsp;&amp;nbsp; SLEEP 5400*1000&lt;/P&gt;&lt;P&gt;1/6/2013 6:45:01 AM: 0022&amp;nbsp; ENDIF &lt;/P&gt;&lt;P&gt;1/6/2013 6:45:01 AM: 0024&amp;nbsp; ODBC CONNECT**&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help ............&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regrads,&lt;/P&gt;&lt;P&gt;Ankit Joshi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2026 18:19:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-Regarding-Sleep-Function/m-p/397207#M1272866</guid>
      <dc:creator />
      <dc:date>2026-01-26T18:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: Issue Regarding Sleep Function</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-Regarding-Sleep-Function/m-p/397208#M1272869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1 hour appears to be the maximum period for Sleep ...&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;Try using two sleep commands 3600*1000 then 1800*1000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;flipside&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2013 10:30:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-Regarding-Sleep-Function/m-p/397208#M1272869</guid>
      <dc:creator>flipside</dc:creator>
      <dc:date>2013-01-07T10:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: Issue Regarding Sleep Function</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-Regarding-Sleep-Function/m-p/397209#M1272871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Flipside,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much for your response. Initially I checked maximum value of Sleep that I found 24 days so I ignored the thought regarding 1 hour limit. After posting issue here I just tried the same logic what you have given n that worked fine. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ankit Joshi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2013 10:44:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-Regarding-Sleep-Function/m-p/397209#M1272871</guid>
      <dc:creator />
      <dc:date>2013-01-07T10:44:57Z</dc:date>
    </item>
  </channel>
</rss>

