<?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 Store multiple text files, split on a field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Store-multiple-text-files-split-on-a-field/m-p/700279#M673036</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good morning,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to use the store statement to dump a table after a script, but have it product multiple text files based on a field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;CustomerNumber,&lt;/P&gt;&lt;P&gt;SalesAmt,&lt;/P&gt;&lt;P&gt;COGS,&lt;/P&gt;&lt;P&gt;SalesPerson,&lt;/P&gt;&lt;P&gt;City,&lt;/P&gt;&lt;P&gt;State&lt;/P&gt;&lt;P&gt;Resident Temp1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Store Output into [\David\documents\text1.txt] (txt);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i get this script to make an individual text file for each Salesperson?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Sep 2014 12:36:34 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-09-03T12:36:34Z</dc:date>
    <item>
      <title>Store multiple text files, split on a field</title>
      <link>https://community.qlik.com/t5/QlikView/Store-multiple-text-files-split-on-a-field/m-p/700279#M673036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good morning,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to use the store statement to dump a table after a script, but have it product multiple text files based on a field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;CustomerNumber,&lt;/P&gt;&lt;P&gt;SalesAmt,&lt;/P&gt;&lt;P&gt;COGS,&lt;/P&gt;&lt;P&gt;SalesPerson,&lt;/P&gt;&lt;P&gt;City,&lt;/P&gt;&lt;P&gt;State&lt;/P&gt;&lt;P&gt;Resident Temp1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Store Output into [\David\documents\text1.txt] (txt);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i get this script to make an individual text file for each Salesperson?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Sep 2014 12:36:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Store-multiple-text-files-split-on-a-field/m-p/700279#M673036</guid>
      <dc:creator />
      <dc:date>2014-09-03T12:36:34Z</dc:date>
    </item>
    <item>
      <title>Re: Store multiple text files, split on a field</title>
      <link>https://community.qlik.com/t5/QlikView/Store-multiple-text-files-split-on-a-field/m-p/700280#M673037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi david,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this should work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Salespersontable:&lt;/P&gt;&lt;P&gt;load distinct&lt;/P&gt;&lt;P&gt;SalesPerson&lt;/P&gt;&lt;P&gt;Resident Temp1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for i = 0 to noofrows('Salespersontable')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vSP = peek ('SalesPerson', $(i), 'Salespersontable');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Output:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CustomerNumber,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SalesAmt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COGS,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SalesPerson,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;City,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;State&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resident Temp1 where match(SalesPerson, '$(vSP)');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Store Output into [\David\documents\text$(vSP).txt] (txt);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table Output;&lt;/P&gt;&lt;P&gt;next&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Sep 2014 14:48:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Store-multiple-text-files-split-on-a-field/m-p/700280#M673037</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-03T14:48:04Z</dc:date>
    </item>
  </channel>
</rss>

