<?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 GoTo command in script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/GoTo-command-in-script/m-p/204296#M61268</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin:0in 0in 0pt;"&gt;Hi&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;I think, we don't have facility to transfer the control from one place to other place to execute the commands.&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;My suggesting is, you can try as below:&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;ExecDate=select top Date from ControlTable;&lt;BR /&gt;&lt;BR /&gt;if exists( select * from Data where Date=$(ExecDate)) then&lt;/P&gt;&lt;P&gt;LOAD * from Data2;&lt;/P&gt;&lt;P&gt;&amp;lt;Other load statement here... will be skipped if there is an error in the data checking above)&amp;gt;&lt;/P&gt;&lt;P&gt;Else&lt;/P&gt;&lt;P&gt;LET errormsg='No data for this date';&lt;/P&gt;&lt;P&gt;end if;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Dec 2010 08:33:27 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-12-02T08:33:27Z</dc:date>
    <item>
      <title>GoTo command in script</title>
      <link>https://community.qlik.com/t5/QlikView/GoTo-command-in-script/m-p/204293#M61265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;BR /&gt;&lt;BR /&gt;Is there a way to to do a "GOTO" command in QlikView script? Currently I have a situation where I need to do some data checking before executing the load script. The sample scenerio:-&lt;BR /&gt;&lt;BR /&gt;ExecDate=select top Date from ControlTable;&lt;BR /&gt;&lt;BR /&gt;if not exists( select * from Data where Date=$(ExecDate)) then&lt;BR /&gt; &lt;B&gt;goto Error;&lt;/B&gt;&lt;BR /&gt;else&lt;BR /&gt; LOAD * from Data2;&lt;BR /&gt;end if;&lt;/P&gt;&lt;P&gt;&amp;lt;Other load statement here... will be skipped if there is an error in the data checking above)&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Error:&lt;/B&gt;&lt;BR /&gt;LET errormsg='No data for this date';&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Nov 2010 07:38:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GoTo-command-in-script/m-p/204293#M61265</guid>
      <dc:creator />
      <dc:date>2010-11-29T07:38:46Z</dc:date>
    </item>
    <item>
      <title>GoTo command in script</title>
      <link>https://community.qlik.com/t5/QlikView/GoTo-command-in-script/m-p/204294#M61266</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;You can try it through Macro statement.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sunil kumar Panda&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Nov 2010 07:54:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GoTo-command-in-script/m-p/204294#M61266</guid>
      <dc:creator>sunil2288</dc:creator>
      <dc:date>2010-11-29T07:54:14Z</dc:date>
    </item>
    <item>
      <title>GoTo command in script</title>
      <link>https://community.qlik.com/t5/QlikView/GoTo-command-in-script/m-p/204295#M61267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunil,&lt;/P&gt;&lt;P&gt;Thanks for the suggestion. But do you have any other method? This is because macro might not work with Publisher.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Dec 2010 07:41:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GoTo-command-in-script/m-p/204295#M61267</guid>
      <dc:creator />
      <dc:date>2010-12-02T07:41:27Z</dc:date>
    </item>
    <item>
      <title>GoTo command in script</title>
      <link>https://community.qlik.com/t5/QlikView/GoTo-command-in-script/m-p/204296#M61268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin:0in 0in 0pt;"&gt;Hi&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;I think, we don't have facility to transfer the control from one place to other place to execute the commands.&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;My suggesting is, you can try as below:&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;ExecDate=select top Date from ControlTable;&lt;BR /&gt;&lt;BR /&gt;if exists( select * from Data where Date=$(ExecDate)) then&lt;/P&gt;&lt;P&gt;LOAD * from Data2;&lt;/P&gt;&lt;P&gt;&amp;lt;Other load statement here... will be skipped if there is an error in the data checking above)&amp;gt;&lt;/P&gt;&lt;P&gt;Else&lt;/P&gt;&lt;P&gt;LET errormsg='No data for this date';&lt;/P&gt;&lt;P&gt;end if;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Dec 2010 08:33:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GoTo-command-in-script/m-p/204296#M61268</guid>
      <dc:creator />
      <dc:date>2010-12-02T08:33:27Z</dc:date>
    </item>
    <item>
      <title>GoTo command in script</title>
      <link>https://community.qlik.com/t5/QlikView/GoTo-command-in-script/m-p/204297#M61269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the suggestion. I guess there is no other method other than using the else statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Dec 2010 04:44:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GoTo-command-in-script/m-p/204297#M61269</guid>
      <dc:creator />
      <dc:date>2010-12-21T04:44:51Z</dc:date>
    </item>
  </channel>
</rss>

