<?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 How to create and append to a CSV via QlikView script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-create-and-append-to-a-CSV-via-QlikView-script/m-p/343434#M704301</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 wanted to know how would I (if possible) write to a CSV file in the QlikView Script and append to that file every reload thats done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="java" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;STORE "SomeDataTable" INTO "CSVDump.txt" (txt); //But the next time the reload happens the data in "SomeDataTable" must be appended to the CSV File&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Krisen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 May 2012 09:34:48 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-05-09T09:34:48Z</dc:date>
    <item>
      <title>How to create and append to a CSV via QlikView script</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-and-append-to-a-CSV-via-QlikView-script/m-p/343434#M704301</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 wanted to know how would I (if possible) write to a CSV file in the QlikView Script and append to that file every reload thats done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="java" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;STORE "SomeDataTable" INTO "CSVDump.txt" (txt); //But the next time the reload happens the data in "SomeDataTable" must be appended to the CSV File&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Krisen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2012 09:34:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-and-append-to-a-CSV-via-QlikView-script/m-p/343434#M704301</guid>
      <dc:creator />
      <dc:date>2012-05-09T09:34:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to create and append to a CSV via QlikView script</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-and-append-to-a-CSV-via-QlikView-script/m-p/343435#M704302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Krisen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no such statement as "APPEND" but you can do a two step load / store that will keep your old information besides the new records. Take a look at the following example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;SomeDataTable: // already existing records in your CSV file&lt;/P&gt;&lt;P&gt;LOAD *&lt;/P&gt;&lt;P&gt;FROM CSVDump.txt (options here);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NewRecords: // With same structure, field names and number of fields as in the table above&lt;/P&gt;&lt;P&gt;CONCATENATE (SomeDataTable) LOAD *&lt;/P&gt;&lt;P&gt;FROM NewData;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Now the table "SomeDataTable" has both old and new rows&lt;/P&gt;&lt;P&gt;STORE "SomeDataTable" INTO "CSVDump.txt" (txt); &lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2012 09:51:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-and-append-to-a-CSV-via-QlikView-script/m-p/343435#M704302</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2012-05-09T09:51:12Z</dc:date>
    </item>
    <item>
      <title>How to create and append to a CSV via QlikView script</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-and-append-to-a-CSV-via-QlikView-script/m-p/343436#M704303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, refer to help as "Incremental Reload"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2012 09:51:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-and-append-to-a-CSV-via-QlikView-script/m-p/343436#M704303</guid>
      <dc:creator>jvitantonio</dc:creator>
      <dc:date>2012-05-09T09:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to create and append to a CSV via QlikView script</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-and-append-to-a-CSV-via-QlikView-script/m-p/343437#M704304</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;&lt;/P&gt;&lt;P&gt;I suggest go&amp;nbsp; for incremental load for the data and then make the csv.&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;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2012 09:53:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-and-append-to-a-CSV-via-QlikView-script/m-p/343437#M704304</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2012-05-09T09:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to create and append to a CSV via QlikView script</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-and-append-to-a-CSV-via-QlikView-script/m-p/343438#M704305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks guys for the guidance, i will have a look into the solutions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The "source" data is actually a timestamp, one before loading and one after loading completes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in essence:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;PSEUDO:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET startTime = &amp;lt;timestamp&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STORE startTime to CSV&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD DATA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET endTime = &amp;lt;timestamp&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Incremental Store endTime to CSV&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Making sense?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2012 12:24:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-and-append-to-a-CSV-via-QlikView-script/m-p/343438#M704305</guid>
      <dc:creator />
      <dc:date>2012-05-09T12:24:31Z</dc:date>
    </item>
  </channel>
</rss>

