<?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 Store Qvd File with Today Date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Store-Qvd-File-with-Today-Date/m-p/276340#M706729</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Stefan. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I didn't realise that you would get the '&amp;amp;' in there too, I've always passed the filename (unecessarily) in quotes. Learn something new!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What if I wanted to use a filename with eg a space in it, do you need to do someting else or can you just leave it... or just not pass the file to a path with spaces in it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erica&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 15 Jan 2012 09:48:47 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-01-15T09:48:47Z</dc:date>
    <item>
      <title>Store Qvd File with Today Date</title>
      <link>https://community.qlik.com/t5/QlikView/Store-Qvd-File-with-Today-Date/m-p/276337#M706726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; In my application, I am loading the qvw file file daily. So I want to store the Data into qvd with date suffix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I am using the below script to create qvds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Store Dinamalar_MoneyValue into Dinamalar_MoneyValue &amp;amp; '_'&amp;amp;$(vToday).qvd (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vToday is the variable that I have created as Date(Today(),'DD-MMM-YYYY')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; It is not working, throw error while loading the file as in screenshot I have attached with this post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Let me know if you have any idea to achieve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Rajan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Jan 2012 07:18:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Store-Qvd-File-with-Today-Date/m-p/276337#M706726</guid>
      <dc:creator />
      <dc:date>2012-01-14T07:18:27Z</dc:date>
    </item>
    <item>
      <title>Store Qvd File with Today Date</title>
      <link>https://community.qlik.com/t5/QlikView/Store-Qvd-File-with-Today-Date/m-p/276338#M706727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Morning Rajan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you using LET or SET to define the variable?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SETdefines it as a function, whereas LET will evaluate the function before storing to the vairable. to quote the helpfile&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN class="Bold"&gt;Set x=3+4;&lt;/SPAN&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN class="Bold"&gt;Let y=3+4&lt;/SPAN&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN class="Bold"&gt;z=$(y)+1;&lt;/SPAN&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN class="Bold"&gt;$(x) &lt;/SPAN&gt;will be evaluated as ' 3+4 '&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN class="Bold"&gt;$(y) &lt;/SPAN&gt;will be evaluated as ' 7 '&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN class="Bold"&gt;$(z) &lt;/SPAN&gt;will be evaluated as ' 8 '&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN class="Bold"&gt;Let T=now( );&lt;/SPAN&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN class="Bold"&gt;$(T) &lt;SPAN style="font-weight: normal;"&gt;will be given the value of the current time.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: normal;"&gt;In this instance you need to use LET.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: normal;"&gt;Also, when using the dollar sign expansion the variable may be evaluated as a direct text substitute in the expression.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: normal;"&gt;So your &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Store Dinamalar_MoneyValue into Dinamalar_MoneyValue &amp;amp; '_'&amp;amp;$(vToday).qvd (qvd);&lt;/P&gt;&lt;P&gt;may be evaluated as EG&lt;/P&gt;&lt;P&gt;4.50 &amp;amp; '_'&amp;amp;15-12-2011 - which would fail&lt;/P&gt;&lt;P&gt;instead of&lt;/P&gt;&lt;P&gt;4.5&amp;amp;'_'&amp;amp;'15-12-2011'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IE it is evaluating it as if you wrote it directly into the script.To solve this I place dummy quote characters around the variable when declaring it. There is no "escape" character so i use the character chr(39) concatenated with the rest of the text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope any of this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erica&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Jan 2012 08:14:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Store-Qvd-File-with-Today-Date/m-p/276338#M706727</guid>
      <dc:creator />
      <dc:date>2012-01-14T08:14:19Z</dc:date>
    </item>
    <item>
      <title>Store Qvd File with Today Date</title>
      <link>https://community.qlik.com/t5/QlikView/Store-Qvd-File-with-Today-Date/m-p/276339#M706728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree with Erica in using a let statement in your variable definition:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vToday = Date(Today(1),'DD-MMM-YYYY');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(I recommend also to use an explicite timer_mode for today and other timer functions, I assume time at function call is what you want in the script).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the Store statement you just pass a filename without single quotes. The filename will not be evaluated for QV statements (besides dollar sign expansion), so there is no need to use concatenation operator &amp;amp; and single quotes to create a string &lt;/P&gt;&lt;P&gt;(in fact, all these stuff will just be part of your file name: &lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt; Dinamalar_MoneyValue &amp;amp; '_'&amp;amp;14-Jan-2012.qvd &lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is probably not what you want, just use&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;&amp;nbsp; Store Dinamalar_MoneyValue into Dinamalar_MoneyValue_$(vToday).qvd (qvd);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The dollar sign expansion will expand to your today's date, so the line will be evaluated as:&lt;/P&gt;&lt;P&gt;Store Dinamalar_MoneyValue into Dinamalar_MoneyValue_14-Jan-2012.qvd (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe this is what you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You already formatted yor data with - as separators, which is good. If you use / as separator like in US style, this would be interpreted as folder path separator by the Windows OS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Jan 2012 11:17:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Store-Qvd-File-with-Today-Date/m-p/276339#M706728</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-01-14T11:17:51Z</dc:date>
    </item>
    <item>
      <title>Store Qvd File with Today Date</title>
      <link>https://community.qlik.com/t5/QlikView/Store-Qvd-File-with-Today-Date/m-p/276340#M706729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Stefan. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I didn't realise that you would get the '&amp;amp;' in there too, I've always passed the filename (unecessarily) in quotes. Learn something new!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What if I wanted to use a filename with eg a space in it, do you need to do someting else or can you just leave it... or just not pass the file to a path with spaces in it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erica&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Jan 2012 09:48:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Store-Qvd-File-with-Today-Date/m-p/276340#M706729</guid>
      <dc:creator />
      <dc:date>2012-01-15T09:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: Store Qvd File with Today Date</title>
      <link>https://community.qlik.com/t5/QlikView/Store-Qvd-File-with-Today-Date/m-p/276341#M706730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Erica,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I usually try to avoid using spaces etc. in file / path names, but I know that sometimes you have to cope with it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't found to much about the possible syntax of the filename in the Help, maybe I just missed the relevant. &lt;/P&gt;&lt;P&gt;But it's it quite easy to try, so let's see:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems that you can just use spaces in your filename:&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;Store INPUT into&amp;nbsp; TestStore_ $(vToday) b.qvd;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notice the two spaces after _ and before b. The resulting filename is &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;TestStore_ 2012-01-15 b.qvd&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QlikView seems to parse the text after into a before the semicolon or a paranthesis as filename.&lt;/P&gt;&lt;P&gt;&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;Store INPUT into&amp;nbsp; TestStore_ $(vToday) b.qvd (qvd);&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here, (qvd) is the file format indicator, not part of the filename. What, if you need paranthesis at the end of the filename (well, not really meaningful, but ...) or a space at the beginning?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Put your filename in single quotes:&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;Store INPUT into&amp;nbsp; ' TestStore_ $(vToday) b.qvd (qvd)';&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resulting filename is:&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt; TestStore_ 2012-01-15 b.qvd (qvd)&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seems to work quite ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use enclosing single quotes as well as single quotes inside:&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;Store INPUT into&amp;nbsp; ' TestStore_'&amp;amp;' $(vToday) b.qvd (qvd)';&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you'll get all single quotes removed, like this:&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt; TestStore_&amp;amp; 2012-01-15 b.qvd (qvd)&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you only use the inside single quotes,&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;Store INPUT into&amp;nbsp; TestStore_'&amp;amp;' $(vToday) b.qvd (qvd);&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the single quotes are still kept as part of the filename, and the file format specifier is also still part of the file name, little strange.&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;TestStore_'&amp;amp;' 2012-01-15 b.qvd (qvd)&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And if you use only one single quote:&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;TestStore_'&amp;amp; 2012-01-15 b.qvd (qvd);&lt;/P&gt;&lt;P&gt;Let a = 10;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The file is stored with correct filename and without the (qvd), but the following statements are not syntax highlighted correctly and variable a is not set to 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I think spaces should not be a problem, you could get some more work if you want to use single quotes. Here I stopped for now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Jan 2012 22:57:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Store-Qvd-File-with-Today-Date/m-p/276341#M706730</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-01-15T22:57:49Z</dc:date>
    </item>
    <item>
      <title>Store Qvd File with Today Date</title>
      <link>https://community.qlik.com/t5/QlikView/Store-Qvd-File-with-Today-Date/m-p/276342#M706731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Erica.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got the result and the script is now creating the qvds. Thanks a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rajan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jan 2012 08:05:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Store-Qvd-File-with-Today-Date/m-p/276342#M706731</guid>
      <dc:creator />
      <dc:date>2012-01-16T08:05:15Z</dc:date>
    </item>
    <item>
      <title>Store Qvd File with Today Date</title>
      <link>https://community.qlik.com/t5/QlikView/Store-Qvd-File-with-Today-Date/m-p/276343#M706732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Stefan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got the answer. I hvae corrected this file name convention by following your steps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Rajan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jan 2012 08:07:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Store-Qvd-File-with-Today-Date/m-p/276343#M706732</guid>
      <dc:creator />
      <dc:date>2012-01-16T08:07:25Z</dc:date>
    </item>
    <item>
      <title>Store Qvd File with Today Date</title>
      <link>https://community.qlik.com/t5/QlikView/Store-Qvd-File-with-Today-Date/m-p/276344#M706733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wow Stefan, hat is useful, thanks for that! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erica&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jan 2012 19:29:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Store-Qvd-File-with-Today-Date/m-p/276344#M706733</guid>
      <dc:creator />
      <dc:date>2012-01-16T19:29:43Z</dc:date>
    </item>
  </channel>
</rss>

