<?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: Looping multiple times in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Looping-multiple-times/m-p/1039797#M642188</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just out of curiosity, is your original code snippet part of a learning exercise?&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/200818"&gt;Count of records&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Jan 2016 23:17:37 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2016-01-20T23:17:37Z</dc:date>
    <item>
      <title>Looping multiple times</title>
      <link>https://community.qlik.com/t5/QlikView/Looping-multiple-times/m-p/1039792#M642183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can I modify the script below to loop through each QVD file location? The script looks at a file location for a QVD, grabs the name of the table and counts the records in that table. I would like to do it multiple times through multiple locations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let numRows = QvdNoOfRecords('\\filename.qvd');&lt;/P&gt;&lt;P&gt;let table = QvdTableName ('\\filename.qvd');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;recordCount:&lt;/P&gt;&lt;P&gt;load * inline [&lt;/P&gt;&lt;P&gt;QvdTableName,numRows&lt;/P&gt;&lt;P&gt;$(table),$(numRows)&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2016 20:15:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Looping-multiple-times/m-p/1039792#M642183</guid>
      <dc:creator />
      <dc:date>2016-01-20T20:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: Looping multiple times</title>
      <link>https://community.qlik.com/t5/QlikView/Looping-multiple-times/m-p/1039793#M642184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can loop through For Next loop in the script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Find below sample snippet&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="Code"&gt;SUB DoDir (Root)&lt;/P&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;P class="Code"&gt;FOR Each File in filelist (Root&amp;amp;' \*.qvd')&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;let numRows = QvdNoOfRecords('$(&lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 13.3333px;"&gt;File&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;let table = QvdTableName ('&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;$(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 13.3333px;"&gt;File&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;)&lt;/SPAN&gt;');&lt;/P&gt;&lt;P class="Code"&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;recordCount:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;load * inline [&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;QvdTableName,numRows&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;$(table),$(numRows)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;];&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P class="Code"&gt;NEXT File&lt;/P&gt;&lt;P class="Code"&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;P class="Code"&gt;FOR Each Dir in dirlist (Root&amp;amp;' \*' )&lt;/P&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;P class="Code"&gt;call DoDir (Dir)&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;P class="Code"&gt;NEXT Dir&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P class="Code"&gt;ENDSUB&lt;/P&gt;&lt;P class="Code"&gt;&lt;/P&gt;&lt;P class="Code"&gt;CALL DoDir ('C:')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2016 21:04:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Looping-multiple-times/m-p/1039793#M642184</guid>
      <dc:creator />
      <dc:date>2016-01-20T21:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: Looping multiple times</title>
      <link>https://community.qlik.com/t5/QlikView/Looping-multiple-times/m-p/1039794#M642185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do I put this in my load script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2016 21:16:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Looping-multiple-times/m-p/1039794#M642185</guid>
      <dc:creator />
      <dc:date>2016-01-20T21:16:05Z</dc:date>
    </item>
    <item>
      <title>Re: Looping multiple times</title>
      <link>https://community.qlik.com/t5/QlikView/Looping-multiple-times/m-p/1039795#M642186</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;What if I need to look into different instances as well like dev, QA, UAT and Prod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2016 22:07:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Looping-multiple-times/m-p/1039795#M642186</guid>
      <dc:creator />
      <dc:date>2016-01-20T22:07:43Z</dc:date>
    </item>
    <item>
      <title>Re: Looping multiple times</title>
      <link>https://community.qlik.com/t5/QlikView/Looping-multiple-times/m-p/1039796#M642187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are two parts in this piece of code. A SUB...END SUB definition which defines but doesn't execute a callable procedure, and the CALL of that same SUB (last line) which executes the procedure with a starting directory as parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Always put the definition before the first CALL or you will get a script error. You can put the definition on the first script tab (together with any other SUB definition), and CALL it anywhere else on the following tabs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2016 23:09:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Looping-multiple-times/m-p/1039796#M642187</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2016-01-20T23:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: Looping multiple times</title>
      <link>https://community.qlik.com/t5/QlikView/Looping-multiple-times/m-p/1039797#M642188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just out of curiosity, is your original code snippet part of a learning exercise?&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/200818"&gt;Count of records&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2016 23:17:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Looping-multiple-times/m-p/1039797#M642188</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-01-20T23:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: Looping multiple times</title>
      <link>https://community.qlik.com/t5/QlikView/Looping-multiple-times/m-p/1039798#M642189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think your answer has just arrived (3 posters asking for the same solution)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2016 23:31:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Looping-multiple-times/m-p/1039798#M642189</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2016-01-20T23:31:07Z</dc:date>
    </item>
  </channel>
</rss>

