<?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 Syntax problem using Execute in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Syntax-problem-using-Execute/m-p/308278#M113823</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have trouble getting a syntax to work. I want to run sed, a stream/text editor, from the QlikView script and replace # with " in a text file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried a few different ways to get QlikView to do this. Like:&lt;/P&gt;&lt;P&gt;Execute c:\...\sed - i "s/#/\"/g" "filename.txt";&lt;/P&gt;&lt;P&gt;Execute cmd.exe /C c:\...\sed - i "s/#/\"/g" "filename.txt";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The peculiar thing is that if I try to replace by anything but " (chr(34)) it works fine and the command c:\...\sed - i "s/#/\"/g" "filename.txt" works perfect when using the command prompt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas how to solve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FWIW I am currently running QV Version 10.009061.7 64-Bit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Nils&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Oct 2011 13:15:39 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-10-03T13:15:39Z</dc:date>
    <item>
      <title>Syntax problem using Execute</title>
      <link>https://community.qlik.com/t5/QlikView/Syntax-problem-using-Execute/m-p/308278#M113823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have trouble getting a syntax to work. I want to run sed, a stream/text editor, from the QlikView script and replace # with " in a text file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried a few different ways to get QlikView to do this. Like:&lt;/P&gt;&lt;P&gt;Execute c:\...\sed - i "s/#/\"/g" "filename.txt";&lt;/P&gt;&lt;P&gt;Execute cmd.exe /C c:\...\sed - i "s/#/\"/g" "filename.txt";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The peculiar thing is that if I try to replace by anything but " (chr(34)) it works fine and the command c:\...\sed - i "s/#/\"/g" "filename.txt" works perfect when using the command prompt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas how to solve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FWIW I am currently running QV Version 10.009061.7 64-Bit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Nils&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Oct 2011 13:15:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syntax-problem-using-Execute/m-p/308278#M113823</guid>
      <dc:creator />
      <dc:date>2011-10-03T13:15:39Z</dc:date>
    </item>
    <item>
      <title>Syntax problem using Execute</title>
      <link>https://community.qlik.com/t5/QlikView/Syntax-problem-using-Execute/m-p/308279#M113824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;try to put your command in a file ".bat".&lt;/P&gt;&lt;P&gt;Then execute that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C u,&lt;/P&gt;&lt;P&gt;Stefano&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Oct 2011 13:47:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syntax-problem-using-Execute/m-p/308279#M113824</guid>
      <dc:creator />
      <dc:date>2011-10-04T13:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax problem using Execute</title>
      <link>https://community.qlik.com/t5/QlikView/Syntax-problem-using-Execute/m-p/308280#M113825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;Thank you for the response. The .bat solution works perfectly. I did consider it before but didn't ponder over it enough to realize I could pass the filename to the bat-file as a parameter. Much faster and neater solution than the one I did implement. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;//Nils&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The new implementation looks like this:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;qv script:&lt;/P&gt;&lt;P&gt;execute xxx.bat $(filename);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bat-file:&lt;/P&gt;&lt;P&gt;sed -i "s/#/\"/g" %1&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Oct 2011 15:11:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syntax-problem-using-Execute/m-p/308280#M113825</guid>
      <dc:creator />
      <dc:date>2011-10-04T15:11:35Z</dc:date>
    </item>
  </channel>
</rss>

