<?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: use/set variables in execute statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/use-set-variables-in-execute-statement/m-p/744288#M1025705</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it's the triple \, im so sorry to waste everyone's time. however you cannot put a space btw -o and the file path, it would not&amp;nbsp; work. part of the syntax I believe. took me a couple trial and error to figure that out. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Mar 2015 15:51:15 GMT</pubDate>
    <dc:creator>yelin_nyu</dc:creator>
    <dc:date>2015-03-18T15:51:15Z</dc:date>
    <item>
      <title>use/set variables in execute statement</title>
      <link>https://community.qlik.com/t5/QlikView/use-set-variables-in-execute-statement/m-p/744286#M1025703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a execute statement to extract from zip file. but the file name will have a different date each week.&lt;/P&gt;&lt;P&gt;the file location has many batches of data, I need to make sure im picking up the right week's data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I set the variables in qlikview, tried to use it in the file name in the execute statement, but it's not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;let&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;vFileName&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;='Hey_';&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;let&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;vBatch&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;weekstart&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()),'YYYYMMDD');&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;let&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;vFileExt&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;='.zip';&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;let&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;vFile&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;vFileName&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;vBatch&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;vFileExt&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;execute&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; "\\MyFilePath\7za.exe" e &lt;A&gt;\\\MyFilePath\FTP\&lt;/A&gt;&lt;/SPAN&gt;&lt;A&gt;&lt;/A&gt;&lt;STRONG&gt;&lt;A&gt;&lt;/A&gt;&lt;EM&gt;&lt;A&gt;&lt;/A&gt;&lt;SPAN style="color: #808080; font-size: 8pt;"&gt;&lt;A&gt;&lt;/A&gt;&lt;SPAN style="color: #808080; font-size: 8pt;"&gt;&lt;A&gt;$(vFile)&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; -y -o&lt;A href="https://community.qlik.com/"&gt;\\MyFilePath\Input\*&lt;/A&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2015 15:31:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/use-set-variables-in-execute-statement/m-p/744286#M1025703</guid>
      <dc:creator>yelin_nyu</dc:creator>
      <dc:date>2015-03-18T15:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: use/set variables in execute statement</title>
      <link>https://community.qlik.com/t5/QlikView/use-set-variables-in-execute-statement/m-p/744287#M1025704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi yelin, I think it should work, maybe is the triple-dash in &lt;SPAN style="font-size: 8pt;"&gt;&lt;A&gt;\\\MyFilePath\FTP&lt;/A&gt;&lt;/SPAN&gt; or it need to add a space between -o and the path in &lt;SPAN style="font-size: 8pt;"&gt; -o&lt;A _jive_internal="true" href="https://community.qlik.com/thread/156631"&gt;\\MyFilePath\Input\*&lt;/A&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2015 15:38:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/use-set-variables-in-execute-statement/m-p/744287#M1025704</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2015-03-18T15:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: use/set variables in execute statement</title>
      <link>https://community.qlik.com/t5/QlikView/use-set-variables-in-execute-statement/m-p/744288#M1025705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it's the triple \, im so sorry to waste everyone's time. however you cannot put a space btw -o and the file path, it would not&amp;nbsp; work. part of the syntax I believe. took me a couple trial and error to figure that out. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2015 15:51:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/use-set-variables-in-execute-statement/m-p/744288#M1025705</guid>
      <dc:creator>yelin_nyu</dc:creator>
      <dc:date>2015-03-18T15:51:15Z</dc:date>
    </item>
  </channel>
</rss>

