<?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: Clean-up routine to load in a FOR_EACH loop in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Clean-up-routine-to-load-in-a-FOR-EACH-loop/m-p/700085#M671686</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi DataNibbler,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sometimes there are error-messages which are not quite true because they shows a consequential error and not the real reason. I have had already such "Field not found" errors and the reasons was errors with the file-path or tablename or it was missing the fileformat like a.qvd &lt;SPAN style="font-size: 14pt;"&gt;(qvd)&lt;/SPAN&gt;. Maybe you could use "set ErrorMode" and ScriptError to find out what goes wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Oct 2014 13:36:35 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2014-10-10T13:36:35Z</dc:date>
    <item>
      <title>Clean-up routine to load in a FOR_EACH loop</title>
      <link>https://community.qlik.com/t5/QlikView/Clean-up-routine-to-load-in-a-FOR-EACH-loop/m-p/700079#M671680</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;I have to build a FOR EACH loop using a searchmask for files created in a subroutine - there might be I don't know how many, one generated in every iteration.&lt;/P&gt;&lt;P&gt;The format is 'SOFA_n.qvd' - where n is a number.&lt;/P&gt;&lt;P&gt;There are other files named like 'SOFA_nnnn.qvd', so it is important to specify that there is just one number behind the underscore - or I'd have to correct several parts of the script.&lt;/P&gt;&lt;P&gt;I have seen in the help_file that the '?' is a wildcard for exactly one digit?&lt;/P&gt;&lt;P&gt;So far, I have&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt; &lt;STRONG&gt;SET &lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;v_fileformat_SOFA_gesäubert&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt; = 'SOFA_?.qvd';&lt;/STRONG&gt; &amp;lt;&amp;lt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Can anybody tell me what's wrong here? When I put an EXIT SCRIPT right behind that, the variable is not there.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Thanks a lot!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;DataNibbler&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Oct 2014 09:54:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Clean-up-routine-to-load-in-a-FOR-EACH-loop/m-p/700079#M671680</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2014-10-10T09:54:10Z</dc:date>
    </item>
    <item>
      <title>Re: Clean-up routine to load in a FOR_EACH loop</title>
      <link>https://community.qlik.com/t5/QlikView/Clean-up-routine-to-load-in-a-FOR-EACH-loop/m-p/700080#M671681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using let instead of set&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Oct 2014 09:57:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Clean-up-routine-to-load-in-a-FOR-EACH-loop/m-p/700080#M671681</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2014-10-10T09:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: Clean-up routine to load in a FOR_EACH loop</title>
      <link>https://community.qlik.com/t5/QlikView/Clean-up-routine-to-load-in-a-FOR-EACH-loop/m-p/700081#M671682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alessandro,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET is ok. I was doing something wrong, or maybe I just overlooked the variable, I have so many, that's a problem. I tested just that piece of code in a small app and it works fine.&lt;/P&gt;&lt;P&gt;The '?' is a placeholder for exactly one digit, so the searchmask won't fit qvd_files that are named like "SOFA_unsauber.qvd", correct?&lt;/P&gt;&lt;P&gt;That is an important point of course.&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Oct 2014 10:43:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Clean-up-routine-to-load-in-a-FOR-EACH-loop/m-p/700081#M671682</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2014-10-10T10:43:43Z</dc:date>
    </item>
    <item>
      <title>Re: Clean-up routine to load in a FOR_EACH loop</title>
      <link>https://community.qlik.com/t5/QlikView/Clean-up-routine-to-load-in-a-FOR-EACH-loop/m-p/700082#M671683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes ? stands for just one char.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Oct 2014 11:53:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Clean-up-routine-to-load-in-a-FOR-EACH-loop/m-p/700082#M671683</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2014-10-10T11:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: Clean-up routine to load in a FOR_EACH loop</title>
      <link>https://community.qlik.com/t5/QlikView/Clean-up-routine-to-load-in-a-FOR-EACH-loop/m-p/700083#M671684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem here now. There is just one file in this instance, "SOFA_1". So I want to load this in a loop.&lt;/P&gt;&lt;P&gt;To know the exact fieldnames - I want to avoid the * in a LOAD - I loaded the table as a standalone in a separate app.&lt;/P&gt;&lt;P&gt;There, the table loads quite normally and there is a field called "Werk_unsauber".&lt;/P&gt;&lt;P&gt;=&amp;gt; So I know the name of all the fields and I can write my LOAD into the loop, taking care to get a specific order of fields and to use the AS option every time - I want to append the LOAD to another one later, so the names have to be equal.&lt;/P&gt;&lt;P&gt;Still, I kept getting an error "Field not found &amp;gt;Werk_unsauber&amp;lt;&lt;/P&gt;&lt;P&gt;I copied it over from the standalone_LOAD several times to make sure there was no typo.&lt;/P&gt;&lt;P&gt;Then I just tried loading the file in the loop with an * and just look what the fields are like.&lt;/P&gt;&lt;P&gt;&amp;lt;=&amp;gt; now I get some xml stuff - describing the correct record, though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot make head or tail of this - the file is definitely qvd, not txt, my searchmask says *.qvd, and I have a counter_variable made up of part of the searchmask because one field has that as a suffix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you help me there?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S.: I have used Filename() and confirmed that the code is definitely loading the correct file - and in my separate test_app, it's loading all normal ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.P.S.: Must be that * - when I do a LOAD * in the test_app, I get the same crap. When I type up every fieldname instead, it's fine...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It looks like that is a txt file - but how can that be?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Oct 2014 13:02:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Clean-up-routine-to-load-in-a-FOR-EACH-loop/m-p/700083#M671684</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2014-10-10T13:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: Clean-up routine to load in a FOR_EACH loop</title>
      <link>https://community.qlik.com/t5/QlikView/Clean-up-routine-to-load-in-a-FOR-EACH-loop/m-p/700084#M671685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your file extension is QVD, you didn't find any problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please use FileList function &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Oct 2014 13:28:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Clean-up-routine-to-load-in-a-FOR-EACH-loop/m-p/700084#M671685</guid>
      <dc:creator />
      <dc:date>2014-10-10T13:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: Clean-up routine to load in a FOR_EACH loop</title>
      <link>https://community.qlik.com/t5/QlikView/Clean-up-routine-to-load-in-a-FOR-EACH-loop/m-p/700085#M671686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi DataNibbler,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sometimes there are error-messages which are not quite true because they shows a consequential error and not the real reason. I have had already such "Field not found" errors and the reasons was errors with the file-path or tablename or it was missing the fileformat like a.qvd &lt;SPAN style="font-size: 14pt;"&gt;(qvd)&lt;/SPAN&gt;. Maybe you could use "set ErrorMode" and ScriptError to find out what goes wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Oct 2014 13:36:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Clean-up-routine-to-load-in-a-FOR-EACH-loop/m-p/700085#M671686</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2014-10-10T13:36:35Z</dc:date>
    </item>
    <item>
      <title>Re: Clean-up routine to load in a FOR_EACH loop</title>
      <link>https://community.qlik.com/t5/QlikView/Clean-up-routine-to-load-in-a-FOR-EACH-loop/m-p/700086#M671687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found the error. I omitted the (qvd) at the end of the LOAD statement and QlikView tried to load that qvd file as a txt. That's how that xml stuff came about.&lt;/P&gt;&lt;P&gt;I just kept repeating my own LOAD and the wizard and ended up trying different formats and hit the one looking exactly like what I was getting.&lt;/P&gt;&lt;P&gt;So that's solved. One more down, 600 to go ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Oct 2014 13:42:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Clean-up-routine-to-load-in-a-FOR-EACH-loop/m-p/700086#M671687</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2014-10-10T13:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: Clean-up routine to load in a FOR_EACH loop</title>
      <link>https://community.qlik.com/t5/QlikView/Clean-up-routine-to-load-in-a-FOR-EACH-loop/m-p/700087#M671688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there is something more:&lt;/P&gt;&lt;P&gt;There is one field in those tables I want to load in the loop - now I have an example_scenario where there are two. They both have the nr. of the iteration where they were created as a suffix, so they are named&lt;/P&gt;&lt;P&gt;- SOFA_1&lt;/P&gt;&lt;P&gt;- SOFA_2&lt;/P&gt;&lt;P&gt;I want to load them in a loop and I have to generate that suffix to get the fieldname right.&lt;/P&gt;&lt;P&gt;=&amp;gt; So I have it like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOR each File in FileList()&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; LET &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;v_Ctr&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;MID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(File)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;, 6, 1); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;NEXT&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;(Ofcourse, there is the LOAD inside the loop, but that's not the problem. Seemingly QlikView correctly sets that counter to 1 for the file 'SOFA_1.qvd' and loads it all right - but in the second iteration, it does not set it to 2 (for 'SOFA_2.qvd'), but the counter remains at 1 and the LOAD consequently fails.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;What might it be this time?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Thanks a lot!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Oct 2014 14:11:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Clean-up-routine-to-load-in-a-FOR-EACH-loop/m-p/700087#M671688</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2014-10-10T14:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: Clean-up routine to load in a FOR_EACH loop</title>
      <link>https://community.qlik.com/t5/QlikView/Clean-up-routine-to-load-in-a-FOR-EACH-loop/m-p/700088#M671689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this too is solved. Instead of the variable, I can just use MID(Filename(), 6, 1) and I get the same result. That one works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Oct 2014 14:20:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Clean-up-routine-to-load-in-a-FOR-EACH-loop/m-p/700088#M671689</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2014-10-10T14:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: Clean-up routine to load in a FOR_EACH loop</title>
      <link>https://community.qlik.com/t5/QlikView/Clean-up-routine-to-load-in-a-FOR-EACH-loop/m-p/700089#M671690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;O no - it doesn't quite work.&lt;/P&gt;&lt;P&gt;The counting_variable is now properly generated - but the fieldname is not recognized.&lt;/P&gt;&lt;P&gt;I have the fields&lt;/P&gt;&lt;P&gt;- Sachnr_und_Anz_1&lt;/P&gt;&lt;P&gt;- Sachnr_und_Anz_2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My counter is 1 and 2, so in the LOAD I write&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sachnr_und_Anz_$(v_Ctr) as newname&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What's wrong with that? Can't I use that in a loop?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Oct 2014 14:26:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Clean-up-routine-to-load-in-a-FOR-EACH-loop/m-p/700089#M671690</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2014-10-10T14:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: Clean-up routine to load in a FOR_EACH loop</title>
      <link>https://community.qlik.com/t5/QlikView/Clean-up-routine-to-load-in-a-FOR-EACH-loop/m-p/700090#M671691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Loading with variables as field(parts) or fieldnames is generally difficult but it should work. Maybe you need a different syntax like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sachnr_und_Anz_'$(v_Ctr)' as newname&lt;/P&gt;&lt;P&gt;'Sachnr_und_Anz_$(v_Ctr)' as newname&lt;/P&gt;&lt;P&gt;Sachnr_und_Anz_v_Ctr as newname&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or you create the complete field outside from loop in a variable:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let v = 'Sachnr_und_Anz_' &amp;amp; '$(v_Ctr)';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$(v) as newname&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Oct 2014 14:49:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Clean-up-routine-to-load-in-a-FOR-EACH-loop/m-p/700090#M671691</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2014-10-10T14:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: Clean-up routine to load in a FOR_EACH loop</title>
      <link>https://community.qlik.com/t5/QlikView/Clean-up-routine-to-load-in-a-FOR-EACH-loop/m-p/700091#M671692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll try those variations.&lt;/P&gt;&lt;P&gt;I've already tried creating the entire fieldname as a variable, but how shall I do that outside the loop? I have a FOR EACH loop, the counter does not exist or is not incremented outside the loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S.: If all that doesn't work, I will just have to drop all superfluous fields so I have only those I need (to append that file to the one before) and rename the fields so I can just use a LOAD * lateron. (the files are stored and dropped at that point anyway, to be loade again only for the final assembly)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Oct 2014 14:52:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Clean-up-routine-to-load-in-a-FOR-EACH-loop/m-p/700091#M671692</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2014-10-10T14:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: Clean-up routine to load in a FOR_EACH loop</title>
      <link>https://community.qlik.com/t5/QlikView/Clean-up-routine-to-load-in-a-FOR-EACH-loop/m-p/700092#M671693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I meant inside the loop but outside the load - directly above the load-statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Oct 2014 15:17:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Clean-up-routine-to-load-in-a-FOR-EACH-loop/m-p/700092#M671693</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2014-10-10T15:17:33Z</dc:date>
    </item>
    <item>
      <title>Re: Clean-up routine to load in a FOR_EACH loop</title>
      <link>https://community.qlik.com/t5/QlikView/Clean-up-routine-to-load-in-a-FOR-EACH-loop/m-p/700093#M671694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;no, sorry, all that didn't work.&lt;/P&gt;&lt;P&gt;So I settled for the longer way of renaming all the fields inside the subroutine, just before storing the table away and dropping it. So that in the final assembly, inside the loop, I can just use the * in the LOAD and all is fine.&lt;/P&gt;&lt;P&gt;Finally.&lt;/P&gt;&lt;P&gt;But that's only one list again - I'm curious to know if the same code will do the job on the other two now. Eventually I'll have it running over all three lists - and then I'm sure the people populating those lists will have a new idea ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Oct 2014 15:33:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Clean-up-routine-to-load-in-a-FOR-EACH-loop/m-p/700093#M671694</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2014-10-10T15:33:33Z</dc:date>
    </item>
  </channel>
</rss>

