<?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: Script Line error in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Script-Line-error/m-p/1247409#M395322</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Vishwarath,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is my sub routine:&lt;/P&gt;&lt;P&gt;SUB Purge_Load_Status&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Load_Status_Max_Year:&lt;/P&gt;&lt;P&gt;&amp;nbsp; Load&lt;/P&gt;&lt;P&gt;&amp;nbsp; Max(Year(Load_Date)) as MaxYearLoadStatus&lt;/P&gt;&lt;P&gt;&amp;nbsp; From [$(_File_Load_Status)](qvd); &lt;/P&gt;&lt;P&gt;&amp;nbsp; let maxDateLoadStatus = peek('MaxYearLoadStatus', 0, 'Load_Status_Max_Year'); //MaxDate chargée&lt;/P&gt;&lt;P&gt;&amp;nbsp; Drop table Load_Status_Max_Year;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; NoConcatenate&lt;/P&gt;&lt;P&gt;&amp;nbsp; Load_Status:&lt;/P&gt;&lt;P&gt;&amp;nbsp; Load *&lt;/P&gt;&lt;P&gt;&amp;nbsp; From [$(_File_Load_Status)](qvd)&lt;/P&gt;&lt;P&gt;&amp;nbsp; Where Year(Load_Date)&amp;gt;=($(maxDateLoadStatus)-2);&lt;/P&gt;&lt;P&gt;&amp;nbsp; Store Load_Status into [$(_File_Load_Status)](qvd);&lt;/P&gt;&lt;P&gt;END SUB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Nov 2016 16:40:02 GMT</pubDate>
    <dc:creator>buederbenjamin</dc:creator>
    <dc:date>2016-11-29T16:40:02Z</dc:date>
    <item>
      <title>Script Line error</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Line-error/m-p/1247407#M395320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone, &lt;/P&gt;&lt;P&gt;I want to call a sub routine in my script. When the "call" statement is include in a IF, the script works correctly but when it's called as an independent instruction I get this error message: "Script Line Error".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have an idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Nov 2016 16:24:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Line-error/m-p/1247407#M395320</guid>
      <dc:creator>buederbenjamin</dc:creator>
      <dc:date>2016-11-29T16:24:16Z</dc:date>
    </item>
    <item>
      <title>Re: Script Line error</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Line-error/m-p/1247408#M395321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share some more information here please. Like a snapshot of your error and the subroutine you are using ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Nov 2016 16:30:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Line-error/m-p/1247408#M395321</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2016-11-29T16:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: Script Line error</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Line-error/m-p/1247409#M395322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Vishwarath,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is my sub routine:&lt;/P&gt;&lt;P&gt;SUB Purge_Load_Status&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Load_Status_Max_Year:&lt;/P&gt;&lt;P&gt;&amp;nbsp; Load&lt;/P&gt;&lt;P&gt;&amp;nbsp; Max(Year(Load_Date)) as MaxYearLoadStatus&lt;/P&gt;&lt;P&gt;&amp;nbsp; From [$(_File_Load_Status)](qvd); &lt;/P&gt;&lt;P&gt;&amp;nbsp; let maxDateLoadStatus = peek('MaxYearLoadStatus', 0, 'Load_Status_Max_Year'); //MaxDate chargée&lt;/P&gt;&lt;P&gt;&amp;nbsp; Drop table Load_Status_Max_Year;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; NoConcatenate&lt;/P&gt;&lt;P&gt;&amp;nbsp; Load_Status:&lt;/P&gt;&lt;P&gt;&amp;nbsp; Load *&lt;/P&gt;&lt;P&gt;&amp;nbsp; From [$(_File_Load_Status)](qvd)&lt;/P&gt;&lt;P&gt;&amp;nbsp; Where Year(Load_Date)&amp;gt;=($(maxDateLoadStatus)-2);&lt;/P&gt;&lt;P&gt;&amp;nbsp; Store Load_Status into [$(_File_Load_Status)](qvd);&lt;/P&gt;&lt;P&gt;END SUB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Nov 2016 16:40:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Line-error/m-p/1247409#M395322</guid>
      <dc:creator>buederbenjamin</dc:creator>
      <dc:date>2016-11-29T16:40:02Z</dc:date>
    </item>
    <item>
      <title>Re: Script Line error</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Line-error/m-p/1247410#M395323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any specific reason you need a subroutine here? Cant you just run the LOAD as is. However, where is the IF you are using here? I dont find anything wrong with the LOAD script. Can we know what exactly you were trying to achieve ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Nov 2016 16:48:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Line-error/m-p/1247410#M395323</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2016-11-29T16:48:34Z</dc:date>
    </item>
  </channel>
</rss>

