<?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: Run script if condition met. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Run-script-if-condition-met/m-p/1288822#M622366</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET vQVDPath = 'yourpathhere';&lt;/P&gt;&lt;P&gt;LET vHour = Hour(Now());&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If ($(vHour) &amp;gt;= 6 And&amp;nbsp; $(vHour) &amp;lt;= 10) Then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your ODBC or OLEDB Connection string here;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;TableA:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD *;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SQL&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;SELECT *&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;From TableA;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Store TableA into $(vQVDPath)tableB.qvd(qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ELSE&lt;/P&gt;&lt;P&gt;EXIT SCRIPT;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Mar 2017 23:20:16 GMT</pubDate>
    <dc:creator>vishsaggi</dc:creator>
    <dc:date>2017-03-14T23:20:16Z</dc:date>
    <item>
      <title>Run script if condition met.</title>
      <link>https://community.qlik.com/t5/QlikView/Run-script-if-condition-met/m-p/1288821#M622365</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;I want to create a QVD if the current time is between the hours of 08:00 AM and 10:00 AM, if it does not meet this condition I want it to Exit the Script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried to do the following Script IF Statement but does not seem to work, any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vHour = Hour(Now());&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If vHour &amp;gt;= 8 And&amp;nbsp; vHour &amp;lt;= 10 Then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TableA:&lt;/P&gt;&lt;P&gt;LOAD *;&lt;/P&gt;&lt;P&gt;SQL&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;SELECT *&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;From TableA;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ELSE EXIT SCRIPT;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Mar 2017 23:09:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Run-script-if-condition-met/m-p/1288821#M622365</guid>
      <dc:creator>ivandrago</dc:creator>
      <dc:date>2017-03-14T23:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: Run script if condition met.</title>
      <link>https://community.qlik.com/t5/QlikView/Run-script-if-condition-met/m-p/1288822#M622366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET vQVDPath = 'yourpathhere';&lt;/P&gt;&lt;P&gt;LET vHour = Hour(Now());&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If ($(vHour) &amp;gt;= 6 And&amp;nbsp; $(vHour) &amp;lt;= 10) Then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your ODBC or OLEDB Connection string here;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;TableA:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD *;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SQL&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;SELECT *&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;From TableA;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Store TableA into $(vQVDPath)tableB.qvd(qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ELSE&lt;/P&gt;&lt;P&gt;EXIT SCRIPT;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Mar 2017 23:20:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Run-script-if-condition-met/m-p/1288822#M622366</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2017-03-14T23:20:16Z</dc:date>
    </item>
    <item>
      <title>Re: Run script if condition met.</title>
      <link>https://community.qlik.com/t5/QlikView/Run-script-if-condition-met/m-p/1288823#M622367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Alot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Mar 2017 23:27:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Run-script-if-condition-met/m-p/1288823#M622367</guid>
      <dc:creator>ivandrago</dc:creator>
      <dc:date>2017-03-14T23:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: Run script if condition met.</title>
      <link>https://community.qlik.com/t5/QlikView/Run-script-if-condition-met/m-p/1913666#M1218285</link>
      <description>&lt;P&gt;Thanks For your answer.&amp;nbsp;&lt;SPAN&gt;Very useful. &lt;span class="lia-unicode-emoji" title=":white_flower:"&gt;💮&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Apr 2022 06:15:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Run-script-if-condition-met/m-p/1913666#M1218285</guid>
      <dc:creator>minajalalian90</dc:creator>
      <dc:date>2022-04-04T06:15:35Z</dc:date>
    </item>
  </channel>
</rss>

