<?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: Do While Loop inside load table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Do-While-Loop-inside-load-table/m-p/1842921#M1215353</link>
    <description>&lt;P&gt;a do while loop is possible:&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P class="Code"&gt;// LOAD files file1.csv..file9.csv&lt;/P&gt;&lt;P class="Code"&gt;Set a=1;&lt;/P&gt;&lt;P class="Code"&gt;Do while a&amp;lt;10&lt;/P&gt;&lt;P class="Code"&gt;LOAD * from file$(a).csv;&lt;/P&gt;&lt;P class="Code"&gt;Let a=a+1;&lt;/P&gt;&lt;P class="Code"&gt;Loop&lt;/P&gt;&lt;P class="Code"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/May2021/Subsystems/Client/Content/QV_QlikView/Scripting/ScriptControlStatements/do.htm" target="_blank" rel="noopener"&gt;Do..loop ‒ QlikView&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 06 Oct 2021 13:16:32 GMT</pubDate>
    <dc:creator>stevejoyce</dc:creator>
    <dc:date>2021-10-06T13:16:32Z</dc:date>
    <item>
      <title>Do While Loop inside load table</title>
      <link>https://community.qlik.com/t5/QlikView/Do-While-Loop-inside-load-table/m-p/1842906#M1215352</link>
      <description>&lt;P&gt;A client asked me if it's possible implementing a do while loop inside a load table to build a new field but I don't think it's possible. Also I don't think it's possible implementing a for loop.&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;BR /&gt;TABLE_2:&lt;BR /&gt;LOAD&lt;BR /&gt;field1,&lt;/P&gt;&lt;P&gt;field2,&amp;nbsp;&lt;/P&gt;&lt;P&gt;filed3,.....&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Do while a &amp;lt;10&lt;BR /&gt;&amp;nbsp; &amp;nbsp;define code with field1, field2, filed3&lt;BR /&gt;loop&lt;/P&gt;&lt;P&gt;RESIDENT TABLE_1;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Oct 2021 13:05:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Do-While-Loop-inside-load-table/m-p/1842906#M1215352</guid>
      <dc:creator>monica_</dc:creator>
      <dc:date>2021-10-06T13:05:07Z</dc:date>
    </item>
    <item>
      <title>Re: Do While Loop inside load table</title>
      <link>https://community.qlik.com/t5/QlikView/Do-While-Loop-inside-load-table/m-p/1842921#M1215353</link>
      <description>&lt;P&gt;a do while loop is possible:&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P class="Code"&gt;// LOAD files file1.csv..file9.csv&lt;/P&gt;&lt;P class="Code"&gt;Set a=1;&lt;/P&gt;&lt;P class="Code"&gt;Do while a&amp;lt;10&lt;/P&gt;&lt;P class="Code"&gt;LOAD * from file$(a).csv;&lt;/P&gt;&lt;P class="Code"&gt;Let a=a+1;&lt;/P&gt;&lt;P class="Code"&gt;Loop&lt;/P&gt;&lt;P class="Code"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/May2021/Subsystems/Client/Content/QV_QlikView/Scripting/ScriptControlStatements/do.htm" target="_blank" rel="noopener"&gt;Do..loop ‒ QlikView&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Oct 2021 13:16:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Do-While-Loop-inside-load-table/m-p/1842921#M1215353</guid>
      <dc:creator>stevejoyce</dc:creator>
      <dc:date>2021-10-06T13:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: Do While Loop inside load table</title>
      <link>https://community.qlik.com/t5/QlikView/Do-While-Loop-inside-load-table/m-p/1842966#M1215356</link>
      <description>&lt;P&gt;In general it's possible to create inside-load-loops, for example with something like:&lt;/P&gt;&lt;P&gt;t: load F1, F2, ... from x while iterno() &amp;lt; 10;&lt;/P&gt;&lt;P&gt;It depends on what you really want to do by "define code ..." if it's possible and sensible or if there are more suitable approaches possible.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Wed, 06 Oct 2021 14:07:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Do-While-Loop-inside-load-table/m-p/1842966#M1215356</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2021-10-06T14:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: Do While Loop inside load table</title>
      <link>https://community.qlik.com/t5/QlikView/Do-While-Loop-inside-load-table/m-p/1844339#M1215415</link>
      <description>&lt;P&gt;LET a = 'field1';&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; tab1:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; field1&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;from some_file.qvd;&lt;/P&gt;&lt;P&gt;Let b = ',field';&lt;/P&gt;&lt;P&gt;SET i=2;&lt;/P&gt;&lt;P&gt;Do while i &amp;lt; 10&lt;/P&gt;&lt;P&gt;LET a = $(a) &amp;amp; $(b) $(i); /* create a set with fields*/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;noconcatenate&lt;/P&gt;&lt;P&gt;tab_$(i)&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;$(a)&lt;/P&gt;&lt;P&gt;from some_file.qvd;&lt;/P&gt;&lt;P&gt;LET i = i+1&lt;/P&gt;&lt;P&gt;LOOP&lt;/P&gt;</description>
      <pubDate>Fri, 08 Oct 2021 17:48:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Do-While-Loop-inside-load-table/m-p/1844339#M1215415</guid>
      <dc:creator>Nadi_Clarke</dc:creator>
      <dc:date>2021-10-08T17:48:11Z</dc:date>
    </item>
  </channel>
</rss>

