<?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 Problem interpreting a command in a script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-interpreting-a-command-in-a-script/m-p/339357#M125202</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try to use this Script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;LET v_Date_for_Update = date(today(),'YYYY-MM-DD');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;bi_report:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;LOAD * FROM "QVD_Files\QVD_DMG.qvd" (qvd)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;where interval &amp;lt; $(v_Date_for_Update);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Where &lt;SPAN style="color: #0000ff;"&gt;interval &lt;/SPAN&gt;represents date in this format 'YYYY-MM-DD' (e.g. '2012-06-06').&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;It seems that the command &lt;SPAN style="color: #0000ff;"&gt; interval &amp;lt; $(v_Date_for_Update) &lt;SPAN style="color: #000000;"&gt;isn't &lt;SPAN style="color: #000000;"&gt;interpret &lt;/SPAN&gt;as i meant, say: &lt;SPAN style="color: #0000ff;"&gt; interval &amp;lt; '2012-06-06' &lt;SPAN style="color: #000000;"&gt;(with apostrophes)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;but as &lt;SPAN style="color: #0000ff;"&gt;interval &amp;lt; 2012-06-06, &lt;SPAN style="color: #000000;"&gt;and therefore no record is returned.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;How can i cause QlikView to interpret in the right way?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;SPAN style="color: #000000;"&gt;Guy &lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Jun 2012 07:46:15 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-06-06T07:46:15Z</dc:date>
    <item>
      <title>Problem interpreting a command in a script</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-interpreting-a-command-in-a-script/m-p/339357#M125202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try to use this Script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;LET v_Date_for_Update = date(today(),'YYYY-MM-DD');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;bi_report:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;LOAD * FROM "QVD_Files\QVD_DMG.qvd" (qvd)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;where interval &amp;lt; $(v_Date_for_Update);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Where &lt;SPAN style="color: #0000ff;"&gt;interval &lt;/SPAN&gt;represents date in this format 'YYYY-MM-DD' (e.g. '2012-06-06').&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;It seems that the command &lt;SPAN style="color: #0000ff;"&gt; interval &amp;lt; $(v_Date_for_Update) &lt;SPAN style="color: #000000;"&gt;isn't &lt;SPAN style="color: #000000;"&gt;interpret &lt;/SPAN&gt;as i meant, say: &lt;SPAN style="color: #0000ff;"&gt; interval &amp;lt; '2012-06-06' &lt;SPAN style="color: #000000;"&gt;(with apostrophes)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;but as &lt;SPAN style="color: #0000ff;"&gt;interval &amp;lt; 2012-06-06, &lt;SPAN style="color: #000000;"&gt;and therefore no record is returned.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;How can i cause QlikView to interpret in the right way?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;SPAN style="color: #000000;"&gt;Guy &lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2012 07:46:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-interpreting-a-command-in-a-script/m-p/339357#M125202</guid>
      <dc:creator />
      <dc:date>2012-06-06T07:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: Problem interpreting a command in a script</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-interpreting-a-command-in-a-script/m-p/339358#M125203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have the answer, just put quotes around the call of the variable : &lt;SPAN style="color: #0000ff;"&gt;interval &amp;lt; '$(v_Date_for_Update)' &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Vincent&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2012 08:11:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-interpreting-a-command-in-a-script/m-p/339358#M125203</guid>
      <dc:creator>vincent_ardiet</dc:creator>
      <dc:date>2012-06-06T08:11:42Z</dc:date>
    </item>
  </channel>
</rss>

