<?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: Store to txt file encoding ansi in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Store-to-txt-file-encoding-ansi/m-p/54088#M609277</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Feb 2018 18:44:12 GMT</pubDate>
    <dc:creator>gidon500</dc:creator>
    <dc:date>2018-02-20T18:44:12Z</dc:date>
    <item>
      <title>Store to txt file encoding ansi</title>
      <link>https://community.qlik.com/t5/QlikView/Store-to-txt-file-encoding-ansi/m-p/54085#M609274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I am using this script&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;aa:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;INLINE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&lt;BR /&gt; F1&lt;BR /&gt; 1&lt;BR /&gt; 2&lt;BR /&gt; 3&lt;BR /&gt; 4&lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;STORE&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;from&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; aa &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;into&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; aaa.txt (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;txt&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) ; &lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;setting is:&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;default export encoding is ansi&amp;nbsp; in document properties&lt;/P&gt;&lt;P&gt;default user setting is Encoding ansi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the problem is that the aaa.txt file encoding is UTF-8&lt;/P&gt;&lt;P&gt;I need it ansi .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what am I doing wrong&amp;nbsp; ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;gidon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2018 14:03:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Store-to-txt-file-encoding-ansi/m-p/54085#M609274</guid>
      <dc:creator>gidon500</dc:creator>
      <dc:date>2018-02-20T14:03:01Z</dc:date>
    </item>
    <item>
      <title>Re: Store to txt file encoding ansi</title>
      <link>https://community.qlik.com/t5/QlikView/Store-to-txt-file-encoding-ansi/m-p/54086#M609275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The STORE command in QlikView always produces UTF8 encoded files. If you need a different encoding you will need to do it via &lt;A _jive_internal="true" href="https://community.qlik.com/thread/31240"&gt;macro&lt;/A&gt; (credit to &lt;A href="https://community.qlik.com/qlik-users/5793"&gt;chriscammers&lt;/A&gt;) or out of QlikView, with a command line program you can call from the script using EXECUTE, for example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2018 14:20:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Store-to-txt-file-encoding-ansi/m-p/54086#M609275</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2018-02-20T14:20:26Z</dc:date>
    </item>
    <item>
      <title>Re: Store to txt file encoding ansi</title>
      <link>https://community.qlik.com/t5/QlikView/Store-to-txt-file-encoding-ansi/m-p/54087#M609276</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;Store command use only UTF format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for other formats you must use Macros&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2018 14:26:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Store-to-txt-file-encoding-ansi/m-p/54087#M609276</guid>
      <dc:creator>YoussefBelloum</dc:creator>
      <dc:date>2018-02-20T14:26:46Z</dc:date>
    </item>
    <item>
      <title>Re: Store to txt file encoding ansi</title>
      <link>https://community.qlik.com/t5/QlikView/Store-to-txt-file-encoding-ansi/m-p/54088#M609277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2018 18:44:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Store-to-txt-file-encoding-ansi/m-p/54088#M609277</guid>
      <dc:creator>gidon500</dc:creator>
      <dc:date>2018-02-20T18:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: Store to txt file encoding ansi</title>
      <link>https://community.qlik.com/t5/QlikView/Store-to-txt-file-encoding-ansi/m-p/54089#M609278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2018 18:44:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Store-to-txt-file-encoding-ansi/m-p/54089#M609278</guid>
      <dc:creator>gidon500</dc:creator>
      <dc:date>2018-02-20T18:44:25Z</dc:date>
    </item>
    <item>
      <title>Re: Store to txt file encoding ansi</title>
      <link>https://community.qlik.com/t5/QlikView/Store-to-txt-file-encoding-ansi/m-p/54090#M609279</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 am using this macro &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub ExportToTextfile&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set tableObject = ActiveDocument.GetSheetObject("TB19")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; tableObject.Export "C:\Users\Gidon\Desktop\New folder\TEST.txt",Chr(9)&amp;nbsp; &lt;/P&gt;&lt;P&gt;End&amp;nbsp; Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it works great but how can I store without the lables&amp;nbsp; . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;gidon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2018 20:43:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Store-to-txt-file-encoding-ansi/m-p/54090#M609279</guid>
      <dc:creator>gidon500</dc:creator>
      <dc:date>2018-02-20T20:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: Store to txt file encoding ansi</title>
      <link>https://community.qlik.com/t5/QlikView/Store-to-txt-file-encoding-ansi/m-p/54091#M609280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;Hi&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;I am using this macro &lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;Sub ExportToTextfile&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set tableObject = ActiveDocument.GetSheetObject("TB19")&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; tableObject.Export "C:\Users\Gidon\Desktop\New folder\TEST.txt",Chr(9)&amp;nbsp; &lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;End&amp;nbsp; Sub&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;it works great but how can I store without the lables&amp;nbsp; . &lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;thanks&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;gidon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2018 20:43:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Store-to-txt-file-encoding-ansi/m-p/54091#M609280</guid>
      <dc:creator>gidon500</dc:creator>
      <dc:date>2018-02-20T20:43:30Z</dc:date>
    </item>
    <item>
      <title>Re: Store to txt file encoding ansi</title>
      <link>https://community.qlik.com/t5/QlikView/Store-to-txt-file-encoding-ansi/m-p/54092#M609281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With that script, you cannot, because you are calling an object (TB19) which does not exist at the time of loading the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead you will need to create a table in the script itself which contains all the data you want to save with that encoding. Then you use the Call function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TableToAnsi:&lt;/P&gt;&lt;P&gt;LOAD *&lt;/P&gt;&lt;P&gt;RESIDENT Othertable;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call ExportToTextfile(); // the macro stores the results of the table "TableToAnsi" into the TXT file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// more script here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I have seen more often is to first STORE the file as TXT which is UTF8 and then use the macro call to convert that TXT file from UTF8 to Windows1252 or the ANSI you need to use.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2018 07:20:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Store-to-txt-file-encoding-ansi/m-p/54092#M609281</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2018-02-21T07:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: Store to txt file encoding ansi</title>
      <link>https://community.qlik.com/t5/QlikView/Store-to-txt-file-encoding-ansi/m-p/54093#M609283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;I get syntax error when I run this script&lt;/P&gt;&lt;P&gt;what am I doing from&lt;/P&gt;&lt;P&gt;gidon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2018 13:22:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Store-to-txt-file-encoding-ansi/m-p/54093#M609283</guid>
      <dc:creator>gidon500</dc:creator>
      <dc:date>2018-02-21T13:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: Store to txt file encoding ansi</title>
      <link>https://community.qlik.com/t5/QlikView/Store-to-txt-file-encoding-ansi/m-p/54094#M609285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Which script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2018 15:30:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Store-to-txt-file-encoding-ansi/m-p/54094#M609285</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2018-02-21T15:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: Store to txt file encoding ansi</title>
      <link>https://community.qlik.com/t5/QlikView/Store-to-txt-file-encoding-ansi/m-p/54095#M609287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;TableToAnsi:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; F1&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;Call ExportToTextfile ()&amp;nbsp; ; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;exit SCRIPT ; &lt;/P&gt;&lt;P&gt;// the macro stores the results of the table "TableToAnsi" into the TXT file.&lt;/P&gt;&lt;P&gt;// this is the macro &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Sub ExportToTextfile&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set tableObject = ActiveDocument.GetSheetObject("TB01")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; tableObject.Export "C:/TEST.txt",Chr(9)&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2018 16:09:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Store-to-txt-file-encoding-ansi/m-p/54095#M609287</guid>
      <dc:creator>gidon500</dc:creator>
      <dc:date>2018-02-21T16:09:10Z</dc:date>
    </item>
    <item>
      <title>Re: Store to txt file encoding ansi</title>
      <link>https://community.qlik.com/t5/QlikView/Store-to-txt-file-encoding-ansi/m-p/54096#M609289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So basically:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;the Sub ... End Sub script must be in the script before the Call function, else the function is not defined and therefore the error.&lt;/LI&gt;&lt;LI&gt;As mentioned before, during the load script you cannot use .GetSheetObject() as the object does not exist yet, this may not cause any error but will result in an empty file. Instead, you have to create a table in the script and export such table.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The sequence is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Define function&lt;/LI&gt;&lt;LI&gt;Load data&lt;/LI&gt;&lt;LI&gt;Call function&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the example by Chris is quite good, but there are sure others in the Qlik Community.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2018 17:47:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Store-to-txt-file-encoding-ansi/m-p/54096#M609289</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2018-02-21T17:47:41Z</dc:date>
    </item>
  </channel>
</rss>

