<?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 routine in script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/routine-in-script/m-p/226136#M78370</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can make a subroutine in the script like the following that is found the QlikView documentation:&lt;/P&gt;&lt;P style="text-align: left"&gt;// example 2 - parameter transfer&lt;BR /&gt;sub ParTrans (A,B,C)&lt;/P&gt;&lt;P style="text-align: left"&gt;A=A+1&lt;BR /&gt;B=B+1&lt;BR /&gt;C=C+1&lt;/P&gt;&lt;P style="text-align: left"&gt;end sub&lt;/P&gt;&lt;P style="text-align: left"&gt;A=1&lt;BR /&gt;X=1&lt;BR /&gt;C=1&lt;/P&gt;&lt;P style="text-align: left"&gt;call ParTrans (A,(X+1)*2)&lt;/P&gt;&lt;P&gt;In this case you might want to check out the for..each loop:&lt;/P&gt;&lt;P style="text-align: left"&gt;for each a in 1,3,7,'xyz'&lt;/P&gt;&lt;P style="text-align: left"&gt;load * from file$(a).csv&lt;/P&gt;&lt;P&gt;next&lt;/P&gt;&lt;P&gt;I hope that helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Oct 2010 22:26:14 GMT</pubDate>
    <dc:creator>pover</dc:creator>
    <dc:date>2010-10-01T22:26:14Z</dc:date>
    <item>
      <title>routine in script</title>
      <link>https://community.qlik.com/t5/QlikView/routine-in-script/m-p/226135#M78369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;What I want to achive it's a routine, as a function or procedure with parametres, in the script.&lt;/P&gt;&lt;P&gt;What for? Because of Incremental Load.&lt;/P&gt;&lt;P&gt;The code I have for incremental Load, goes before the table. So, if i have 20 tables i'd have to copy the mentioned code before each one. It'd be perfect to create a function and call it before each table giving it parametres, as the name of the table and others if necesary.&lt;/P&gt;&lt;P&gt;Is it possible to do this in the script??&lt;/P&gt;&lt;P&gt;thxs in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Oct 2010 21:42:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/routine-in-script/m-p/226135#M78369</guid>
      <dc:creator />
      <dc:date>2010-10-01T21:42:01Z</dc:date>
    </item>
    <item>
      <title>routine in script</title>
      <link>https://community.qlik.com/t5/QlikView/routine-in-script/m-p/226136#M78370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can make a subroutine in the script like the following that is found the QlikView documentation:&lt;/P&gt;&lt;P style="text-align: left"&gt;// example 2 - parameter transfer&lt;BR /&gt;sub ParTrans (A,B,C)&lt;/P&gt;&lt;P style="text-align: left"&gt;A=A+1&lt;BR /&gt;B=B+1&lt;BR /&gt;C=C+1&lt;/P&gt;&lt;P style="text-align: left"&gt;end sub&lt;/P&gt;&lt;P style="text-align: left"&gt;A=1&lt;BR /&gt;X=1&lt;BR /&gt;C=1&lt;/P&gt;&lt;P style="text-align: left"&gt;call ParTrans (A,(X+1)*2)&lt;/P&gt;&lt;P&gt;In this case you might want to check out the for..each loop:&lt;/P&gt;&lt;P style="text-align: left"&gt;for each a in 1,3,7,'xyz'&lt;/P&gt;&lt;P style="text-align: left"&gt;load * from file$(a).csv&lt;/P&gt;&lt;P&gt;next&lt;/P&gt;&lt;P&gt;I hope that helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Oct 2010 22:26:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/routine-in-script/m-p/226136#M78370</guid>
      <dc:creator>pover</dc:creator>
      <dc:date>2010-10-01T22:26:14Z</dc:date>
    </item>
  </channel>
</rss>

