<?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: How to pass variable value in QVW from command line in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-pass-variable-value-in-QVW-from-command-line/m-p/1686501#M726972</link>
    <description>&lt;P&gt;yes i think for the first time but after no need&lt;/P&gt;</description>
    <pubDate>Fri, 20 Mar 2020 14:00:42 GMT</pubDate>
    <dc:creator>Taoufiq_Zarra</dc:creator>
    <dc:date>2020-03-20T14:00:42Z</dc:date>
    <item>
      <title>How to pass variable value in QVW from command line</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-pass-variable-value-in-QVW-from-command-line/m-p/1686485#M726967</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I am trying to pass variable value from desktop command line .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my qvw I have following script:&lt;/P&gt;&lt;P&gt;&lt;FONT size="1" color="#0000ff"&gt;&lt;STRONG&gt;Let&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;I&gt;&lt;FONT size="1" color="#808080"&gt;vyear&lt;/FONT&gt;&lt;/I&gt;&lt;/STRONG&gt;&lt;FONT size="1"&gt;=2019;&lt;BR /&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT size="1" color="#0000ff"&gt;LOAD&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT size="1"&gt;&lt;BR /&gt;'Customer'&amp;amp;&lt;/FONT&gt;&lt;FONT size="1" color="#0000ff"&gt;Ceil&lt;/FONT&gt;&lt;FONT size="1"&gt;(&lt;/FONT&gt;&lt;FONT size="1" color="#0000ff"&gt;RAND&lt;/FONT&gt;&lt;FONT size="1"&gt;()*100) &lt;/FONT&gt;&lt;FONT size="1" color="#0000ff"&gt;as&lt;/FONT&gt; &lt;FONT size="1" color="#800000"&gt;CustomerName&lt;/FONT&gt;&lt;FONT size="1"&gt;,&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT size="1" color="#0000ff"&gt;Date&lt;/FONT&gt;&lt;FONT size="1"&gt;(&lt;/FONT&gt;&lt;FONT size="1" color="#0000ff"&gt;makedate&lt;/FONT&gt;&lt;FONT size="1"&gt;('$(vyear)')+&lt;/FONT&gt;&lt;FONT size="1" color="#0000ff"&gt;floor&lt;/FONT&gt;&lt;FONT size="1"&gt;(&lt;/FONT&gt;&lt;FONT size="1" color="#0000ff"&gt;RAND&lt;/FONT&gt;&lt;FONT size="1"&gt;()*(1*365+1))) &lt;/FONT&gt;&lt;FONT size="1" color="#0000ff"&gt;as&lt;/FONT&gt; &lt;FONT size="1" color="#800000"&gt;Date&lt;/FONT&gt;&lt;FONT size="1"&gt;,&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT size="1" color="#0000ff"&gt;round&lt;/FONT&gt;&lt;FONT size="1"&gt;(&lt;/FONT&gt;&lt;FONT size="1" color="#0000ff"&gt;RAND&lt;/FONT&gt;&lt;FONT size="1"&gt;()*1000+50,10) &lt;/FONT&gt;&lt;FONT size="1" color="#0000ff"&gt;as&lt;/FONT&gt; &lt;FONT size="1" color="#800000"&gt;InvoiceValue&lt;/FONT&gt;&lt;FONT size="1"&gt;,&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT size="1" color="#0000ff"&gt;recno&lt;/FONT&gt;&lt;FONT size="1"&gt;() &lt;/FONT&gt;&lt;FONT size="1" color="#0000ff"&gt;as&lt;/FONT&gt; &lt;FONT size="1" color="#800000"&gt;InvoiceNo&lt;/FONT&gt;&lt;FONT size="1"&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT size="1" color="#0000ff"&gt;autogenerate&lt;/FONT&gt;&lt;FONT size="1"&gt; 100; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1"&gt;&lt;STRONG&gt;&lt;I&gt;&lt;FONT size="1" color="#808080"&gt;vyear&lt;/FONT&gt;&lt;/I&gt;&lt;/STRONG&gt; - is the variable I want to pass its value from command line . Now in command line I am writing this command &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1"&gt;"C:\Program Files\QlikView\qv.exe" /vvyear=2020 "c:\temp\myqv.qvw"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1"&gt;I want to pass the vyear variable value from command line. It seems it is not working .&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1"&gt;Any thoughts.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1"&gt;Thank you.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-pass-variable-value-in-QVW-from-command-line/m-p/1686485#M726967</guid>
      <dc:creator>ashis</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass variable value in QVW from command line</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-pass-variable-value-in-QVW-from-command-line/m-p/1686494#M726968</link>
      <description>&lt;P&gt;Maye be :&lt;/P&gt;&lt;LI-CODE lang="python"&gt;//Let vyear=2019;

LOAD
'Customer'&amp;amp;Ceil(RAND()*100) as CustomerName,
Date(makedate('$(vyear)')+floor(RAND()*(1*365+1))) as Date,
round(RAND()*1000+50,10) as InvoiceValue,
recno() as InvoiceNo
autogenerate 100; &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;LI-CODE lang="python"&gt;"C:\Program Files\QlikView\qv.exe" /r /vvyear=2020 "c:\temp\myqv.qvw"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and reopen the document&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Mar 2020 13:37:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-pass-variable-value-in-QVW-from-command-line/m-p/1686494#M726968</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2020-03-20T13:37:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass variable value in QVW from command line</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-pass-variable-value-in-QVW-from-command-line/m-p/1686497#M726969</link>
      <description>&lt;LI-SPOILER&gt;&amp;nbsp;&lt;/LI-SPOILER&gt;&lt;P&gt;Hi &lt;A href="https://community.qlik.com/t5/user/viewprofilepage/user-id/56648" target="_self"&gt;&lt;SPAN&gt;Taoufiq_ZARRA&lt;/SPAN&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Thank you for your quick reply. It did not work.&lt;/P&gt;&lt;P&gt;I believe we should have the variable in the load script .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Mar 2020 13:41:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-pass-variable-value-in-QVW-from-command-line/m-p/1686497#M726969</guid>
      <dc:creator>ashis</dc:creator>
      <dc:date>2020-03-20T13:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass variable value in QVW from command line</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-pass-variable-value-in-QVW-from-command-line/m-p/1686498#M726970</link>
      <description>&lt;P&gt;Works for me.&lt;BR /&gt;yes we have to declare the variable&lt;BR /&gt;Do you close and open the file ?&lt;/P&gt;</description>
      <pubDate>Fri, 20 Mar 2020 13:43:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-pass-variable-value-in-QVW-from-command-line/m-p/1686498#M726970</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2020-03-20T13:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass variable value in QVW from command line</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-pass-variable-value-in-QVW-from-command-line/m-p/1686499#M726971</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;You are right it works .&lt;/P&gt;&lt;P&gt;Don't we need to define variable in the load script. Do we need to comment the variable in load script ?&lt;/P&gt;</description>
      <pubDate>Fri, 20 Mar 2020 13:50:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-pass-variable-value-in-QVW-from-command-line/m-p/1686499#M726971</guid>
      <dc:creator>ashis</dc:creator>
      <dc:date>2020-03-20T13:50:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass variable value in QVW from command line</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-pass-variable-value-in-QVW-from-command-line/m-p/1686501#M726972</link>
      <description>&lt;P&gt;yes i think for the first time but after no need&lt;/P&gt;</description>
      <pubDate>Fri, 20 Mar 2020 14:00:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-pass-variable-value-in-QVW-from-command-line/m-p/1686501#M726972</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2020-03-20T14:00:42Z</dc:date>
    </item>
  </channel>
</rss>

