<?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 Command-line variable setting not working in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Command-line-variable-setting-not-working/m-p/280312#M1181466</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Folks, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to run a QV10 SR3 QVW from the Win XP command-line, passing in a variable as I do so, but it isn't working as expected and would like your suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The QVW is attached - it's quite simple, expecting that a variable x will be provided from 'outside', and doing this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; trace x=$(x);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LET y=x&amp;amp;x;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; trace y=$(y); &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The command-line I'm using is&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; qv /r /vx=abc .\test.qvw&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The resulting logfile merely displays&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x=&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; y=&lt;/P&gt;&lt;P&gt;(whereas I expected &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x=abc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; y=abcabc&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;and the resulting QVW has no variables listed in the&amp;nbsp; Settings&amp;gt;Variables Overview listing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using /l (that's lowercase L) instead of /r,perchance it made a difference - but it didn't.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there something I'm missing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Angus.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Jan 2012 05:40:54 GMT</pubDate>
    <dc:creator>gussfish</dc:creator>
    <dc:date>2012-01-17T05:40:54Z</dc:date>
    <item>
      <title>Command-line variable setting not working</title>
      <link>https://community.qlik.com/t5/QlikView/Command-line-variable-setting-not-working/m-p/280312#M1181466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Folks, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to run a QV10 SR3 QVW from the Win XP command-line, passing in a variable as I do so, but it isn't working as expected and would like your suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The QVW is attached - it's quite simple, expecting that a variable x will be provided from 'outside', and doing this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; trace x=$(x);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LET y=x&amp;amp;x;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; trace y=$(y); &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The command-line I'm using is&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; qv /r /vx=abc .\test.qvw&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The resulting logfile merely displays&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x=&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; y=&lt;/P&gt;&lt;P&gt;(whereas I expected &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x=abc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; y=abcabc&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;and the resulting QVW has no variables listed in the&amp;nbsp; Settings&amp;gt;Variables Overview listing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using /l (that's lowercase L) instead of /r,perchance it made a difference - but it didn't.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there something I'm missing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Angus.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2012 05:40:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Command-line-variable-setting-not-working/m-p/280312#M1181466</guid>
      <dc:creator>gussfish</dc:creator>
      <dc:date>2012-01-17T05:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: Command-line variable setting not working</title>
      <link>https://community.qlik.com/t5/QlikView/Command-line-variable-setting-not-working/m-p/280313#M1181467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Angus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The variables "x" and "y" must exist prior to the reload. Add them empty in the Settings menu, Variable Overview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The script should use SET instead of LET, without need of concatenationwith the "&amp;amp;". The /v parameter does pass a value to a variable, but if this variable doesn't exist, it does not create it.&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;TRACE x = $(x);&lt;/P&gt;&lt;P&gt;SET y = $(x)$(x);&lt;/P&gt;&lt;P&gt;//LET y = '$(x)' &amp;amp; '$(x)'; // This will do as well, but seems more complex&lt;/P&gt;&lt;P&gt;TRACE y = $(y);&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>Tue, 17 Jan 2012 07:17:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Command-line-variable-setting-not-working/m-p/280313#M1181467</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2012-01-17T07:17:11Z</dc:date>
    </item>
    <item>
      <title>Command-line variable setting not working</title>
      <link>https://community.qlik.com/t5/QlikView/Command-line-variable-setting-not-working/m-p/280314#M1181468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Well, how about that - you're right, Miguel!&amp;nbsp; Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hadn't expected that behaviour - in other contexts QlikView will quite happily create variables on the fly, so I'd expected that command-line variables would be created, ready to use.&amp;nbsp; Seems a bit odd to me, really, but there you go - it's a QlikView thing!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Angus.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2012 21:55:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Command-line-variable-setting-not-working/m-p/280314#M1181468</guid>
      <dc:creator>gussfish</dc:creator>
      <dc:date>2012-01-18T21:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: Command-line variable setting not working</title>
      <link>https://community.qlik.com/t5/QlikView/Command-line-variable-setting-not-working/m-p/280315#M1181469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, this stumped me for a while&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2013 20:53:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Command-line-variable-setting-not-working/m-p/280315#M1181469</guid>
      <dc:creator>kevinpintokpa</dc:creator>
      <dc:date>2013-02-08T20:53:37Z</dc:date>
    </item>
  </channel>
</rss>

