<?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: Calling a stored procedure via an If statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calling-a-stored-procedure-via-an-If-statement/m-p/662296#M241364</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't worry..Sorted it!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if left(DocumentPath(),6) = 'C:\QV\' then &lt;/P&gt;&lt;P&gt;SQL EXEC dbo.sp_add_log 1, 'Qlikview-Agent Performance', 'procedure started';&lt;/P&gt;&lt;P&gt;end if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Missed the End If.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Aug 2014 14:24:42 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-08-27T14:24:42Z</dc:date>
    <item>
      <title>Calling a stored procedure via an If statement</title>
      <link>https://community.qlik.com/t5/QlikView/Calling-a-stored-procedure-via-an-If-statement/m-p/662295#M241363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm after some help calling a stored procedure via an if statement in the load script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In isolation SQL EXEC dbo.sp_add_log 1, 'Qlikview-Agent Performance', 'procedure started' works fine but I only want it to run when the if statement is fulfilled (ie document path starts C;\QV_)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the if statement is not fulfilled, I'd want to bypass this stored procedure call and go on to run the rest of the script starting on the next tab. This just stops if the document path does not start C:\QV_&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What am I missing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if left(DocumentPath(),6) = 'C:\QV_' then &lt;/P&gt;&lt;P&gt;SQL EXEC dbo.sp_add_log 1, 'Qlikview-Agent Performance', 'procedure started';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2014 13:46:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calling-a-stored-procedure-via-an-If-statement/m-p/662295#M241363</guid>
      <dc:creator />
      <dc:date>2014-08-27T13:46:32Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a stored procedure via an If statement</title>
      <link>https://community.qlik.com/t5/QlikView/Calling-a-stored-procedure-via-an-If-statement/m-p/662296#M241364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't worry..Sorted it!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if left(DocumentPath(),6) = 'C:\QV\' then &lt;/P&gt;&lt;P&gt;SQL EXEC dbo.sp_add_log 1, 'Qlikview-Agent Performance', 'procedure started';&lt;/P&gt;&lt;P&gt;end if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Missed the End If.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2014 14:24:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calling-a-stored-procedure-via-an-If-statement/m-p/662296#M241364</guid>
      <dc:creator />
      <dc:date>2014-08-27T14:24:42Z</dc:date>
    </item>
  </channel>
</rss>

