<?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: Storing Concatenated string into Variable - Variable comes up empty (in script) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Storing-Concatenated-string-into-Variable-Variable-comes-up/m-p/1869113#M1216485</link>
    <description>Thank you. Managed to get this right with peej just after I posted this.&lt;BR /&gt;&lt;BR /&gt;It now works, but only for the first 1000… the 2nd batch of 1000 and&lt;BR /&gt;onwards doesn’t go into the variables &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 10 Dec 2021 13:25:26 GMT</pubDate>
    <dc:creator>DirkCtz</dc:creator>
    <dc:date>2021-12-10T13:25:26Z</dc:date>
    <item>
      <title>Storing Concatenated string into Variable - Variable comes up empty (in script)</title>
      <link>https://community.qlik.com/t5/QlikView/Storing-Concatenated-string-into-Variable-Variable-comes-up/m-p/1868798#M1216469</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have a list of 6000 unique customer details in a qvd. I'm taking the 6000 and splitting them into batches of 1000 as I need to call a 1000 at a time in Teradata script...&lt;/P&gt;
&lt;P&gt;I'm successfully splitting the data into the batches, however when I want to store the batches into a variable within script, the variable content keeps on coming up empty as per below - the variable does get created, but the 1000 customer numbers does not store for some reason.&lt;/P&gt;
&lt;P&gt;Am I doing something wrong, and can anyone propose a workaround?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DirkCtz_1-1639078224638.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/68305i364ABE6AE4C64412/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DirkCtz_1-1639078224638.png" alt="DirkCtz_1-1639078224638.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Dec 2021 19:30:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Storing-Concatenated-string-into-Variable-Variable-comes-up/m-p/1868798#M1216469</guid>
      <dc:creator>DirkCtz</dc:creator>
      <dc:date>2021-12-09T19:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: Storing Concatenated string into Variable - Variable comes up empty (in script)</title>
      <link>https://community.qlik.com/t5/QlikView/Storing-Concatenated-string-into-Variable-Variable-comes-up/m-p/1868956#M1216479</link>
      <description>&lt;P&gt;Field-values couldn't be grabbed just by a reference to the field else it requires always a load or field-functions. In your case it should look like:&lt;/P&gt;
&lt;P&gt;let var = peek('field-name', /* record-index */ 0, 'table-name');&lt;/P&gt;
&lt;P&gt;- Marcus&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Dec 2021 08:50:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Storing-Concatenated-string-into-Variable-Variable-comes-up/m-p/1868956#M1216479</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2021-12-10T08:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: Storing Concatenated string into Variable - Variable comes up empty (in script)</title>
      <link>https://community.qlik.com/t5/QlikView/Storing-Concatenated-string-into-Variable-Variable-comes-up/m-p/1869113#M1216485</link>
      <description>Thank you. Managed to get this right with peej just after I posted this.&lt;BR /&gt;&lt;BR /&gt;It now works, but only for the first 1000… the 2nd batch of 1000 and&lt;BR /&gt;onwards doesn’t go into the variables &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 10 Dec 2021 13:25:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Storing-Concatenated-string-into-Variable-Variable-comes-up/m-p/1869113#M1216485</guid>
      <dc:creator>DirkCtz</dc:creator>
      <dc:date>2021-12-10T13:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: Storing Concatenated string into Variable - Variable comes up empty (in script)</title>
      <link>https://community.qlik.com/t5/QlikView/Storing-Concatenated-string-into-Variable-Variable-comes-up/m-p/1869124#M1216486</link>
      <description>&lt;P&gt;I assume it's caused from your loop that you don't fill and/or query the right field/variable at the right time. For example you name the field batch$(i) - do you query afterwards also&amp;nbsp;batch$(i) within the peek(). Something like this will be the reason. Personally I think you don't need to increment the fields and/or these variables else you could use a single one which is appropriate overwritten / assigned within each loop iteration.&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Fri, 10 Dec 2021 13:51:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Storing-Concatenated-string-into-Variable-Variable-comes-up/m-p/1869124#M1216486</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2021-12-10T13:51:41Z</dc:date>
    </item>
  </channel>
</rss>

