<?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 into CSV with Comma and Double Quotes in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Storing-into-CSV-with-Comma-and-Double-Quotes/m-p/2470196#M1225915</link>
    <description>&lt;P&gt;Thankyou for the reply, yep that's the route I'm looking to go down I reckon. A bit frustrating.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Fri, 12 Jul 2024 06:46:06 GMT</pubDate>
    <dc:creator>MattG</dc:creator>
    <dc:date>2024-07-12T06:46:06Z</dc:date>
    <item>
      <title>Storing into CSV with Comma and Double Quotes</title>
      <link>https://community.qlik.com/t5/QlikView/Storing-into-CSV-with-Comma-and-Double-Quotes/m-p/1546277#M746371</link>
      <description>&lt;P&gt;QV Nov 2017 SR4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Having trawled through numerous posts (although some quite old) I'm not sure if this is even possible but I need to save a table to a CSV file with all fields enclosed in double quotes.&amp;nbsp; It is for uploading into another system that is very specific on the format.&lt;/P&gt;&lt;P&gt;So this sort of thing:-&lt;/P&gt;&lt;P&gt;"ID","CompanyName","JobTitle"&lt;/P&gt;&lt;P&gt;"12345","Haymarket","Data Analyst"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can happily save to a csv using this variable and STORE command:-&lt;/P&gt;&lt;P&gt;LET vCSVExport = '\\' &amp;amp; '$(vHammstore)' &amp;amp; '\Direct\Circulation\Data ops\Directories\SDL Export\Directories_$(vTodaysDate).csv (txt)';&lt;/P&gt;&lt;P&gt;STORE temp into $(vCSVExport);&lt;/P&gt;&lt;P&gt;I'm not sure how if possible to apply the double quotes?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried putting msq before and after the txt part ie ...(msq,txt)';&amp;nbsp;&amp;nbsp;&amp;nbsp; or&amp;nbsp;&amp;nbsp; ...(txt,msq)';&lt;/P&gt;&lt;P&gt;but get this...&lt;/P&gt;&lt;P&gt;Unexpected token: 'msq', expected one of: 'qvd', 'txt', 'qvx', 'delimiter'&lt;/P&gt;&lt;P&gt;STORE temp into \\HAMMSTORE\Direct\Circulation\Data ops\Directories\SDL Export\Directories_19-02-2019.csv (&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;msq&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;,txt)&lt;/P&gt;&lt;P&gt;and this respectively...............&lt;/P&gt;&lt;P&gt;Unexpected token: 'msq', expected one of: ')', 'qvd', 'txt', 'qvx', 'delimiter'&lt;/P&gt;&lt;P&gt;STORE temp into \\HAMMSTORE\Direct\Circulation\Data ops\Directories\SDL Export\Directories_19-02-2019.csv (txt,&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;msq&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure what else to try so any ideas much appreciated&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 21:23:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Storing-into-CSV-with-Comma-and-Double-Quotes/m-p/1546277#M746371</guid>
      <dc:creator>haymarketpaul</dc:creator>
      <dc:date>2024-11-16T21:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: Storing into CSV with Comma and Double Quotes</title>
      <link>https://community.qlik.com/t5/QlikView/Storing-into-CSV-with-Comma-and-Double-Quotes/m-p/1546287#M746372</link>
      <description>&lt;P&gt;may be use&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;chr(34) &amp;amp; your_field &amp;amp; chr(34) as&amp;nbsp;&amp;nbsp;your_field&amp;nbsp;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;in your data mode&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2019 11:36:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Storing-into-CSV-with-Comma-and-Double-Quotes/m-p/1546287#M746372</guid>
      <dc:creator>pradosh_thakur</dc:creator>
      <dc:date>2019-02-19T11:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: Storing into CSV with Comma and Double Quotes</title>
      <link>https://community.qlik.com/t5/QlikView/Storing-into-CSV-with-Comma-and-Double-Quotes/m-p/1546320#M746373</link>
      <description>&lt;P&gt;Thanks for the idea - unfortunately testing it on a couple of fields ends up with this sort of thing (for some reason?) in the CSV file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"""145323""","""Angus Heathers""",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also it doesn't affect the header row&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2019 12:29:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Storing-into-CSV-with-Comma-and-Double-Quotes/m-p/1546320#M746373</guid>
      <dc:creator>haymarketpaul</dc:creator>
      <dc:date>2019-02-19T12:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: Storing into CSV with Comma and Double Quotes</title>
      <link>https://community.qlik.com/t5/QlikView/Storing-into-CSV-with-Comma-and-Double-Quotes/m-p/1546337#M746375</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/35805"&gt;@haymarketpaul&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Also it doesn't affect the header row&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;For this may be you would want to load your first row as data itself and then you will have an extra row, but your header row will have double quotes around it&lt;/P&gt;&lt;PRE&gt;LET vDoubleQuote = Chr(34);

Table:
LOAD '$(vDoubleQuote)' &amp;amp; F1 &amp;amp; '$(vDoubleQuote)' as [F1],
	 '$(vDoubleQuote)' &amp;amp; F2 &amp;amp; '$(vDoubleQuote)' as [F2],
	 '$(vDoubleQuote)' &amp;amp; F3 &amp;amp; '$(vDoubleQuote)' as [F3];
LOAD * INLINE [
	F1, F2, F3
    ID, CompanyName, JobTitle
    12345, Haymarket, Data Analyst
];

STORE Table into Table.csv (txt);&lt;/PRE&gt;&lt;P&gt;This will create a csv like this&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 289px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/6319iD1D2B6CED00AEC92/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2019 12:46:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Storing-into-CSV-with-Comma-and-Double-Quotes/m-p/1546337#M746375</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-02-19T12:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: Storing into CSV with Comma and Double Quotes</title>
      <link>https://community.qlik.com/t5/QlikView/Storing-into-CSV-with-Comma-and-Double-Quotes/m-p/1546355#M746379</link>
      <description>&lt;P&gt;Thanks Sunny - still gives me this though with extra "s for some reason&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;F1,F2,F3&lt;BR /&gt;"""ID""","""CompanyName""","""JobTitle"""&lt;BR /&gt;"""12345""","""Haymarket""","""Data Analyst"""&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2019 13:13:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Storing-into-CSV-with-Comma-and-Double-Quotes/m-p/1546355#M746379</guid>
      <dc:creator>haymarketpaul</dc:creator>
      <dc:date>2019-02-19T13:13:20Z</dc:date>
    </item>
    <item>
      <title>Re: Storing into CSV with Comma and Double Quotes</title>
      <link>https://community.qlik.com/t5/QlikView/Storing-into-CSV-with-Comma-and-Double-Quotes/m-p/1546450#M746380</link>
      <description>&lt;P&gt;Strangely it appears this is/was possible according to this post from Sept last year....&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikView-Deployment/Storing-into-CSV-with-Comma-and-Double-Quotes/m-p/93944?advanced=false&amp;amp;collapse_discussion=true&amp;amp;q=STORE%20to%20csv%20with%20double%20quotes&amp;amp;search_type=thread" target="_blank"&gt;https://community.qlik.com/t5/QlikView-Deployment/Storing-into-CSV-with-Comma-and-Double-Quotes/m-p/93944?advanced=false&amp;amp;collapse_discussion=true&amp;amp;q=STORE%20to%20csv%20with%20double%20quotes&amp;amp;search_type=thread&lt;/A&gt;&lt;/P&gt;&lt;P&gt;...but even Miguel's (Qlik Employee) attached example gives me the same multiple quote problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alas I'll have to explore some other way of achieving it I guess.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2019 15:42:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Storing-into-CSV-with-Comma-and-Double-Quotes/m-p/1546450#M746380</guid>
      <dc:creator>haymarketpaul</dc:creator>
      <dc:date>2019-02-19T15:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: Storing into CSV with Comma and Double Quotes</title>
      <link>https://community.qlik.com/t5/QlikView/Storing-into-CSV-with-Comma-and-Double-Quotes/m-p/2470144#M1225912</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/35805"&gt;@haymarketpaul&lt;/a&gt;&amp;nbsp;long shot, but did you ever make this work?&lt;BR /&gt;&lt;BR /&gt;I'm in the exact same boat and can't figure it out.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2024 01:54:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Storing-into-CSV-with-Comma-and-Double-Quotes/m-p/2470144#M1225912</guid>
      <dc:creator>MattG</dc:creator>
      <dc:date>2024-07-12T01:54:17Z</dc:date>
    </item>
    <item>
      <title>Re: Storing into CSV with Comma and Double Quotes</title>
      <link>https://community.qlik.com/t5/QlikView/Storing-into-CSV-with-Comma-and-Double-Quotes/m-p/2470195#M1225914</link>
      <description>&lt;P&gt;No sorry never cracked it from within Qlik - as it was only needed for a short while I ended up just using ASAP Utilities within Excel which has the adding double quotes function built into it.&amp;nbsp; You could also write some python code to do it (ask AI if unsure)&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2024 06:44:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Storing-into-CSV-with-Comma-and-Double-Quotes/m-p/2470195#M1225914</guid>
      <dc:creator>haymarketpaul</dc:creator>
      <dc:date>2024-07-12T06:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: Storing into CSV with Comma and Double Quotes</title>
      <link>https://community.qlik.com/t5/QlikView/Storing-into-CSV-with-Comma-and-Double-Quotes/m-p/2470196#M1225915</link>
      <description>&lt;P&gt;Thankyou for the reply, yep that's the route I'm looking to go down I reckon. A bit frustrating.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2024 06:46:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Storing-into-CSV-with-Comma-and-Double-Quotes/m-p/2470196#M1225915</guid>
      <dc:creator>MattG</dc:creator>
      <dc:date>2024-07-12T06:46:06Z</dc:date>
    </item>
  </channel>
</rss>

