<?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: FOR - NEXT loop next in load scripts in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/FOR-NEXT-loop-next-in-load-scripts/m-p/1175324#M633905</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;Hi Jun,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;I am not sure what you are trying to achieve. Try this,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;For j =1 to 3&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;For i=1 to 44&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if j=1 or (j=2 and (i=1 or i=2 or i=4 or i=5 or i=20)) then&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;NTAB_temp:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;$(j) as j_count,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(i) as i_count;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;SQL SELECT *&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM "sample_database".dbo.TABLEA;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;endif&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Next&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Next&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Jun 2016 07:58:02 GMT</pubDate>
    <dc:creator>tamilarasu</dc:creator>
    <dc:date>2016-06-13T07:58:02Z</dc:date>
    <item>
      <title>FOR - NEXT loop next in load scripts</title>
      <link>https://community.qlik.com/t5/QlikView/FOR-NEXT-loop-next-in-load-scripts/m-p/1175323#M633904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to make load scripts including for-loop nested as below.&lt;/P&gt;&lt;P&gt;But it doesn't wok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there anyboy who helps me to solve this?&lt;/P&gt;&lt;P&gt;Thank you for your cooporation,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For $(j)=1 to 3&lt;/P&gt;&lt;P&gt;LET i=1;&lt;/P&gt;&lt;P&gt;For $(i)=1 to 44&lt;/P&gt;&lt;P&gt;if j=1 or (j=2 and (i=1 or i=2 or i=4 or i=5 or i=20)) then&lt;/P&gt;&lt;P&gt;NTAB_temp:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt; $(j) as j_count,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(i) as i_count;&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;FROM "sample_database".dbo.TABLEA;&lt;/P&gt;&lt;P&gt;endif&lt;/P&gt;&lt;P&gt;LET i=$(i)+1;&lt;/P&gt;&lt;P&gt;Next;&lt;/P&gt;&lt;P&gt;LET j=$(j)+1;&lt;/P&gt;&lt;P&gt;Next;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jun from TOYKO&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jun 2016 00:30:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FOR-NEXT-loop-next-in-load-scripts/m-p/1175323#M633904</guid>
      <dc:creator />
      <dc:date>2016-06-13T00:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: FOR - NEXT loop next in load scripts</title>
      <link>https://community.qlik.com/t5/QlikView/FOR-NEXT-loop-next-in-load-scripts/m-p/1175324#M633905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;Hi Jun,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;I am not sure what you are trying to achieve. Try this,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;For j =1 to 3&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;For i=1 to 44&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if j=1 or (j=2 and (i=1 or i=2 or i=4 or i=5 or i=20)) then&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;NTAB_temp:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;$(j) as j_count,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(i) as i_count;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;SQL SELECT *&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM "sample_database".dbo.TABLEA;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;endif&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Next&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Next&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jun 2016 07:58:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FOR-NEXT-loop-next-in-load-scripts/m-p/1175324#M633905</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2016-06-13T07:58:02Z</dc:date>
    </item>
  </channel>
</rss>

