<?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 Difference between LET/SET in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Difference-between-LET-SET/m-p/238875#M89637</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt;&amp;gt;About LET/SET - not exactly. May be it's also possible to assign a number with SET (SET var=0;), but I haven't tried.&lt;BR /&gt;&amp;gt;&amp;gt;The main LET role is to assign a result of some function or expression to a variable. The result of a function could be also string.&lt;/P&gt;&lt;P&gt;OK.&lt;/P&gt;&lt;P&gt;Still dont have a strong clue on how to use one or another...&lt;/P&gt;&lt;P&gt;QV Team could be handy at this point ...&lt;/P&gt;&lt;P&gt;Are you hearing us ? &lt;IMG alt="Embarrassed" src="http://community.qlik.com/emoticons/emotion-10.gif" /&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;I understood you case with file names. We had a similar problem. It's near impossible to handle all posslible variants of month/date format in file &amp;gt;&amp;gt;names. That's why in our case we gave a strong recomendation to users to save file in defined format.&lt;/P&gt;&lt;P&gt;OK. I'lll think about it.&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;May be you can modify analytics what generates QVD files from CSV? If in CSV data is some Date field which can define month and year, then you &amp;gt;&amp;gt;can save QVD with file name you need. If the QVD name has to be the same as CSV then, as I mentioned, it's very difficult to create some "generic" &amp;gt;&amp;gt;code for this case.&lt;/P&gt;&lt;P&gt;The QVD file name is ALWAYS the same name as the CSV. For each and every CSV we have a QVD.&lt;/P&gt;&lt;P&gt;Maybe , when the file name has some sorting part on it , such as a date or a number, it could be always followed by an underscore or something similar. Then, a generic function could always substr on it.&lt;/P&gt;&lt;P&gt;I'll think about it. Not difficult to standardize since I'm the one who built the mainframe exctraction tool.&lt;/P&gt;&lt;P&gt;Thanks again. You're very kind.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;BR /&gt;Artjoms&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Nov 2009 17:18:58 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-11-12T17:18:58Z</dc:date>
    <item>
      <title>Difference between LET/SET</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-LET-SET/m-p/238863#M89625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello !&lt;/P&gt;&lt;P&gt;I always confuse myself about using LET or SET or none of them.&lt;/P&gt;&lt;P&gt;Say that I want to create a NEW variable ? Do I use LET or SET ?&lt;/P&gt;&lt;P&gt;What about assigning a value to a variable ? Do I use LET/SET or nothing ?&lt;/P&gt;&lt;P&gt;Thanks !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Nov 2009 20:56:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-LET-SET/m-p/238863#M89625</guid>
      <dc:creator />
      <dc:date>2009-11-11T20:56:17Z</dc:date>
    </item>
    <item>
      <title>Difference between LET/SET</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-LET-SET/m-p/238864#M89626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is very simple:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;using SET&lt;/STRONG&gt; you are adding string value to a variable&lt;BR /&gt;SET Variable1='4+5';&lt;BR /&gt;variable value is '4+5'&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;using LET&lt;/STRONG&gt; you are adding an expression result to a variable&lt;BR /&gt;LET Variable1=4+5;&lt;BR /&gt;variable value is 9&lt;/P&gt;&lt;P&gt;Rgds,&lt;BR /&gt;Artjoms&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Nov 2009 21:18:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-LET-SET/m-p/238864#M89626</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-11-11T21:18:37Z</dc:date>
    </item>
    <item>
      <title>Difference between LET/SET</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-LET-SET/m-p/238865#M89627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jabalite ,&lt;/P&gt;&lt;P&gt;The &lt;STRONG&gt;set&lt;/STRONG&gt; statement is used for defining &lt;A href="http://community.qlik.com/forums/QvenglScript_variables.htm"&gt;script variables&lt;/A&gt;. These can be used for substituting strings, paths, drives, etc.&lt;/P&gt;&lt;P&gt;The &lt;STRONG&gt;let&lt;/STRONG&gt; statement, in opposition to the &lt;STRONG&gt;set&lt;/STRONG&gt; statement, evaluates the expression on the right side of the ' =' before it is assigned to the macro variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="hcp5"&gt;&lt;STRONG&gt;Set x=3+4;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="hcp5"&gt;&lt;STRONG&gt;Let y=3+4&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="hcp5"&gt;&lt;STRONG&gt;z=$(y)+1;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="hcp5"&gt;&lt;STRONG&gt;$(x)&lt;/STRONG&gt; will be evaluated as ' &lt;EM&gt;3+4&lt;/EM&gt; '&lt;/P&gt;&lt;P class="hcp5"&gt;&lt;STRONG&gt;$(y)&lt;/STRONG&gt; will be evaluated as ' &lt;EM&gt;7&lt;/EM&gt; '&lt;/P&gt;&lt;P class="hcp5"&gt;&lt;STRONG&gt;$(z)&lt;/STRONG&gt; will be evaluated as ' &lt;EM&gt;8&lt;/EM&gt; '&lt;/P&gt;&lt;P class="hcp5"&gt;&lt;/P&gt;&lt;P class="hcp5"&gt;Regards,&lt;/P&gt;&lt;P class="hcp5"&gt;Poorva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Nov 2009 21:23:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-LET-SET/m-p/238865#M89627</guid>
      <dc:creator />
      <dc:date>2009-11-11T21:23:49Z</dc:date>
    </item>
    <item>
      <title>Difference between LET/SET</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-LET-SET/m-p/238866#M89628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to you all !&lt;/P&gt;&lt;P&gt;Now I understand :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET is like a # DEFINE in C&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;LET is the typical assignment operator !&lt;/P&gt;&lt;P&gt;Thanks !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Nov 2009 21:39:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-LET-SET/m-p/238866#M89628</guid>
      <dc:creator />
      <dc:date>2009-11-11T21:39:35Z</dc:date>
    </item>
    <item>
      <title>Difference between LET/SET</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-LET-SET/m-p/238867#M89629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ops...&lt;/P&gt;&lt;P&gt;I'm confused again...&lt;/P&gt;&lt;P&gt;I have a situation here where several CSV files are available on a folder. I want to pick the LAST file name on the path. Cause the file path has the YEAR/MONTH on it's composition. An example of file name is 'FPCDA_200911.CSV' where 200911 is the year/month of the file.&lt;/P&gt;&lt;P&gt;So I need to pick the last YEAR/MONTH file available on that folder.&lt;/P&gt;&lt;P&gt;Here's how I coded it :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;LET LASTFILE='';&lt;BR /&gt;&lt;BR /&gt;FOR EACH AFILENAME IN FILELIST R:\USR\CPD\PRO\GT\01\EB\DADOS\FP\FPCDA\*.QVD;&lt;BR /&gt; IF '$(AFILENAME)' &amp;gt; '$(LASTFILE)' THEN&lt;BR /&gt; SET LASTFILE=$(AFILENAME);&lt;BR /&gt; END IF&lt;BR /&gt;NEXT&lt;BR /&gt;&lt;BR /&gt;LET FILENAMETOBEREAD=$(LASTFILE);&lt;BR /&gt;&lt;BR /&gt;LOAD&lt;BR /&gt;...&lt;BR /&gt;FROM $(FILENAMETOBEREAD)&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;But now I'm not sure if this is the appropriate coding for that ..&lt;/P&gt;&lt;P&gt;Can you help me ?&lt;/P&gt;&lt;P&gt;Once more, thank you !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Nov 2009 21:54:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-LET-SET/m-p/238867#M89629</guid>
      <dc:creator />
      <dc:date>2009-11-11T21:54:54Z</dc:date>
    </item>
    <item>
      <title>Difference between LET/SET</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-LET-SET/m-p/238868#M89630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ops...&lt;/P&gt;&lt;P&gt;I'm confused again...&lt;/P&gt;&lt;P&gt;I have a situation here where several CSV files are available on a folder. I want to pick the LAST file name on the path. Cause the file path has the YEAR/MONTH on it's composition. An example of file name is 'FPCDA_200911.CSV' where 200911 is the year/month of the file.&lt;/P&gt;&lt;P&gt;So I need to pick the last YEAR/MONTH file available on that folder.&lt;/P&gt;&lt;P&gt;Here's how I coded it :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;LET LASTFILE='';&lt;BR /&gt;&lt;BR /&gt;FOR EACH AFILENAME IN FILELIST R:\USR\CPD\PRO\GT\01\EB\DADOS\FP\FPCDA\*.QVD;&lt;BR /&gt; IF '$(AFILENAME)' &amp;gt; '$(LASTFILE)' THEN&lt;BR /&gt; SET LASTFILE=$(AFILENAME);&lt;BR /&gt; END IF&lt;BR /&gt;NEXT&lt;BR /&gt;&lt;BR /&gt;LET FILENAMETOBEREAD=$(LASTFILE);&lt;BR /&gt;&lt;BR /&gt;LOAD&lt;BR /&gt;...&lt;BR /&gt;FROM $(FILENAMETOBEREAD)&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;But now I'm not sure if this is the appropriate coding for that ..&lt;/P&gt;&lt;P&gt;Can you help me ?&lt;/P&gt;&lt;P&gt;Once more, thank you !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Nov 2009 21:57:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-LET-SET/m-p/238868#M89630</guid>
      <dc:creator />
      <dc:date>2009-11-11T21:57:00Z</dc:date>
    </item>
    <item>
      <title>Difference between LET/SET</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-LET-SET/m-p/238869#M89631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm still confused....&lt;/P&gt;&lt;P&gt;I don't understand why the code below does not work.&lt;/P&gt;&lt;P&gt;Say that I have a folder with several CSV files on it. The file names are comprised of a prefix plus YEAR/MONTH of the file. Like this file names list :&lt;/P&gt;&lt;P&gt;R:\USR\CPD\PRO\GT\01\EB\DADOS\FP\FPCDA\FPCDA_200901.CSV&lt;BR /&gt;R:\USR\CPD\PRO\GT\01\EB\DADOS\FP\FPCDA\FPCDA_200902.CSV&lt;BR /&gt;R:\USR\CPD\PRO\GT\01\EB\DADOS\FP\FPCDA\FPCDA_200903.CSV&lt;BR /&gt;R:\USR\CPD\PRO\GT\01\EB\DADOS\FP\FPCDA\FPCDA_200904.CSV&lt;BR /&gt;R:\USR\CPD\PRO\GT\01\EB\DADOS\FP\FPCDA\FPCDA_200905.CSV&lt;BR /&gt;R:\USR\CPD\PRO\GT\01\EB\DADOS\FP\FPCDA\FPCDA_200906.CSV&lt;BR /&gt;R:\USR\CPD\PRO\GT\01\EB\DADOS\FP\FPCDA\FPCDA_200907.CSV&lt;BR /&gt;R:\USR\CPD\PRO\GT\01\EB\DADOS\FP\FPCDA\FPCDA_200908.CSV&lt;BR /&gt;R:\USR\CPD\PRO\GT\01\EB\DADOS\FP\FPCDA\FPCDA_200909.CSV&lt;BR /&gt;R:\USR\CPD\PRO\GT\01\EB\DADOS\FP\FPCDA\FPCDA_200910.CSV&lt;/P&gt;&lt;P&gt;Notice that '200910' is the YEAR/MONTH of the file.&lt;/P&gt;&lt;P&gt;I need to discover the last YEAR/MONTH file on that folder, to read THAT file.&lt;/P&gt;&lt;P&gt;I coded like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;LET LASTFILE='';&lt;BR /&gt;&lt;BR /&gt;FOR EACH FILE_NAME IN FILELIST R:\USR\CPD\PRO\GT\01\EB\DADOS\FP\FPCDA\*.QVD;&lt;BR /&gt; IF '$(FILE_NAME)' &amp;gt; '$(LASTFILE)' THEN&lt;BR /&gt; LET LASTFILE=$(FILE_NAME);&lt;BR /&gt; END IF&lt;BR /&gt;NEXT&lt;BR /&gt;&lt;BR /&gt;LOAD&lt;BR /&gt;...&lt;BR /&gt;FROM $(LASTFILE)&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;I dont know why that code does not work...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Nov 2009 22:06:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-LET-SET/m-p/238869#M89631</guid>
      <dc:creator />
      <dc:date>2009-11-11T22:06:28Z</dc:date>
    </item>
    <item>
      <title>Difference between LET/SET</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-LET-SET/m-p/238870#M89632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What kind of files are you loading then? 'Cause in directory you have CSV file, but in FOR EACH statement you mentioned QVD extension.&lt;BR /&gt;First of all it is very important to follow the sintax, then everything will be fine &lt;IMG alt="Wink" src="http://community.qlik.com/emoticons/emotion-5.gif" /&gt;&lt;/P&gt;&lt;P&gt;Secondly, it is hard to compare strings, that's why I involved one more variable var2 which value is number (year and month)&lt;/P&gt;&lt;P&gt;This script is working (tested):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;&lt;B&gt;LET&lt;/B&gt; var1=0;&lt;BR /&gt;&lt;B&gt;&lt;BR /&gt;For&lt;/B&gt; Each File in Filelist ('R:\USR\CPD\PRO\GT\01\EB\DADOS\FP\FPCDA\*.CSV')&lt;BR /&gt; &lt;B&gt;LET&lt;/B&gt; var2 = Left(Right(&lt;B&gt;&lt;I&gt;'$(File)'&lt;/I&gt;&lt;/B&gt;,10),6);&lt;BR /&gt; &lt;B&gt;If&lt;/B&gt; &lt;B&gt;&lt;I&gt;'$(var2)'&lt;/I&gt;&lt;/B&gt; &amp;gt; &lt;B&gt;&lt;I&gt;'$(var1)'&lt;/I&gt;&lt;/B&gt; &lt;B&gt;Then&lt;BR /&gt;&lt;/B&gt; &lt;B&gt;SET&lt;/B&gt; LastFile = &lt;B&gt;&lt;I&gt;'$(File)'&lt;/I&gt;&lt;/B&gt;;&lt;BR /&gt; &lt;STRONG&gt;LET&lt;/STRONG&gt; var1 = &lt;STRONG&gt;&lt;EM&gt;'$(var2)'&lt;/EM&gt;&lt;/STRONG&gt;;&lt;BR /&gt; &lt;B&gt;End&lt;/B&gt; &lt;B&gt;If&lt;BR /&gt;&lt;/B&gt;&lt;B&gt;Next&lt;/B&gt; File&lt;BR /&gt;&lt;B&gt;&lt;BR /&gt;Load&lt;/B&gt; *&lt;BR /&gt;&lt;B&gt;FROM&lt;/B&gt; &lt;B&gt;&lt;I&gt;[$(LastFile)]&lt;/I&gt;&lt;/B&gt; (ansi, txt, delimiter is ',', embedded labels, msq); &lt;B&gt;// for CSV files&lt;BR /&gt;&lt;/B&gt;&lt;B&gt;//FROM [$(LastFile)] (qvd); // for QVD files&lt;/B&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;Case you have QVD files change CSV extension to QVD in "For Each..." line, uncomment From line for QVD and comment line for CSV. &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Good luck!&lt;/P&gt;&lt;P&gt;Rgds,&lt;BR /&gt;Artjoms&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Nov 2009 00:47:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-LET-SET/m-p/238870#M89632</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-11-12T00:47:19Z</dc:date>
    </item>
    <item>
      <title>Difference between LET/SET</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-LET-SET/m-p/238871#M89633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ops ! Sorry !&lt;/P&gt;&lt;P&gt;The fact is that we have an Unisys mainframe and all tables are downloaded from it as CSV. Right after downloading them, I convert them all to QVD. So, on that folder I have a QVD for each CSV file. That's automatic. Whenever I extract a table from the mainframe this thing happens. I've built this infrastructure already.&lt;/P&gt;&lt;P&gt;As for the string comparison, I understand that it is boring.&lt;/P&gt;&lt;P&gt;However, I wanna a more "generic" code cause there are several filename formats. Sometimes it's YYYYMM, others are YYYYMMDD and yet on others we have simply a number (counter) amongst the file name.&lt;/P&gt;&lt;P&gt;But I'm STILL confused with SET/LET !!!!!!!!!!!!!!!!&lt;/P&gt;&lt;P&gt;You used&lt;/P&gt;&lt;P&gt;SET LASTFILE=&lt;/P&gt;&lt;P&gt;Why not 'LET' in this case as well ?&lt;/P&gt;&lt;P&gt;Funny, I'm a skilled programmer ! Never got messed up by such a silly thing !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But thanks again !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Nov 2009 00:59:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-LET-SET/m-p/238871#M89633</guid>
      <dc:creator />
      <dc:date>2009-11-12T00:59:47Z</dc:date>
    </item>
    <item>
      <title>Difference between LET/SET</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-LET-SET/m-p/238872#M89634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used SET LastFile, 'cause I need to assign a simple string to a variable value ('$(File) - is a string)&lt;/P&gt;&lt;P&gt;Probably you have to compare file creation date and time to get latest (last) file. For this QV has a function &lt;EM&gt;FileTime&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Try this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;Let&lt;/STRONG&gt; var1=0;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;For&lt;/STRONG&gt; Each File in Filelist ('R:\USR\CPD\PRO\GT\01\EB\DADOS\FP\FPCDA\*.QVD')&lt;BR /&gt; &lt;STRONG&gt;If&lt;/STRONG&gt; FileTime(&lt;I&gt;&lt;STRONG&gt;'$(File)'&lt;/STRONG&gt;&lt;/I&gt;) &amp;gt; &lt;I&gt;&lt;STRONG&gt;'$(var1)'&lt;/STRONG&gt;&lt;/I&gt; &lt;STRONG&gt;Then&lt;BR /&gt;&lt;/STRONG&gt; &lt;STRONG&gt;SET&lt;/STRONG&gt; LastFile = &lt;I&gt;&lt;STRONG&gt;'$(File)'&lt;/STRONG&gt;&lt;/I&gt;;&lt;BR /&gt; &lt;STRONG&gt;LET&lt;/STRONG&gt; var1=FileTime(&lt;I&gt;&lt;STRONG&gt;'$(File)'&lt;/STRONG&gt;&lt;/I&gt;);&lt;BR /&gt; &lt;STRONG&gt;End&lt;/STRONG&gt; &lt;STRONG&gt;If&lt;BR /&gt;&lt;/STRONG&gt;&lt;STRONG&gt;Next&lt;/STRONG&gt; File&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Load&lt;/STRONG&gt; *&lt;BR /&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt; &lt;I&gt;&lt;STRONG&gt;[$(LastFile)]&lt;/STRONG&gt;&lt;/I&gt; (qvd);&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Nov 2009 01:28:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-LET-SET/m-p/238872#M89634</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-11-12T01:28:42Z</dc:date>
    </item>
    <item>
      <title>Difference between LET/SET</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-LET-SET/m-p/238873#M89635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The file CREATION time is irrelevant.&lt;/P&gt;&lt;P&gt;The most important is the FILE NAME.&lt;/P&gt;&lt;P&gt;Cause the file from April/2009 may have been refreshed.&lt;/P&gt;&lt;P&gt;However, the chronological most old file is still November/2009.&lt;/P&gt;&lt;P&gt;So, on my script I do need November/2009, even though April/2009 may have been refresed (re-created).&lt;/P&gt;&lt;P&gt;Got it ?&lt;/P&gt;&lt;P&gt;As for LET/SET, is it correct to say this :&lt;/P&gt;&lt;P&gt;When you need a STRING VARIABLE ASSIGNMENT, use SET&lt;/P&gt;&lt;P&gt;When you need a NUMERICAL VARIABLE ASSIGNMENT, use LET&lt;/P&gt;&lt;P&gt;Is that correct ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Nov 2009 01:38:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-LET-SET/m-p/238873#M89635</guid>
      <dc:creator />
      <dc:date>2009-11-12T01:38:13Z</dc:date>
    </item>
    <item>
      <title>Difference between LET/SET</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-LET-SET/m-p/238874#M89636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;About LET/SET - not exactly. May be it's also possible to assign a number with SET (SET var=0;), but I haven't tried.&lt;BR /&gt;The main LET role is to assign a result of some function or expression to a variable. The result of a function could be also string.&lt;BR /&gt;&lt;BR /&gt;I understood you case with file names. We had a similar problem. It's near impossible to handle all posslible variants of month/date format in file names. That's why in our case we gave a strong recomendation to users to save file in defined format.&lt;/P&gt;&lt;P&gt;May be you can modify analytics what generates QVD files from CSV? If in CSV data is some Date field which can define month and year, then you can save QVD with file name you need. If the QVD name has to be the same as CSV then, as I mentioned, it's very difficult to create some "generic" code for this case.&lt;/P&gt;&lt;P&gt;Rgds,&lt;BR /&gt;Artjoms&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Nov 2009 04:08:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-LET-SET/m-p/238874#M89636</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-11-12T04:08:06Z</dc:date>
    </item>
    <item>
      <title>Difference between LET/SET</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-LET-SET/m-p/238875#M89637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt;&amp;gt;About LET/SET - not exactly. May be it's also possible to assign a number with SET (SET var=0;), but I haven't tried.&lt;BR /&gt;&amp;gt;&amp;gt;The main LET role is to assign a result of some function or expression to a variable. The result of a function could be also string.&lt;/P&gt;&lt;P&gt;OK.&lt;/P&gt;&lt;P&gt;Still dont have a strong clue on how to use one or another...&lt;/P&gt;&lt;P&gt;QV Team could be handy at this point ...&lt;/P&gt;&lt;P&gt;Are you hearing us ? &lt;IMG alt="Embarrassed" src="http://community.qlik.com/emoticons/emotion-10.gif" /&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;I understood you case with file names. We had a similar problem. It's near impossible to handle all posslible variants of month/date format in file &amp;gt;&amp;gt;names. That's why in our case we gave a strong recomendation to users to save file in defined format.&lt;/P&gt;&lt;P&gt;OK. I'lll think about it.&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;May be you can modify analytics what generates QVD files from CSV? If in CSV data is some Date field which can define month and year, then you &amp;gt;&amp;gt;can save QVD with file name you need. If the QVD name has to be the same as CSV then, as I mentioned, it's very difficult to create some "generic" &amp;gt;&amp;gt;code for this case.&lt;/P&gt;&lt;P&gt;The QVD file name is ALWAYS the same name as the CSV. For each and every CSV we have a QVD.&lt;/P&gt;&lt;P&gt;Maybe , when the file name has some sorting part on it , such as a date or a number, it could be always followed by an underscore or something similar. Then, a generic function could always substr on it.&lt;/P&gt;&lt;P&gt;I'll think about it. Not difficult to standardize since I'm the one who built the mainframe exctraction tool.&lt;/P&gt;&lt;P&gt;Thanks again. You're very kind.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;BR /&gt;Artjoms&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Nov 2009 17:18:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-LET-SET/m-p/238875#M89637</guid>
      <dc:creator />
      <dc:date>2009-11-12T17:18:58Z</dc:date>
    </item>
    <item>
      <title>Difference between LET/SET</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-LET-SET/m-p/238876#M89638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;URW!&lt;/P&gt;&lt;P&gt;Good luck!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Nov 2009 17:27:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-LET-SET/m-p/238876#M89638</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-11-12T17:27:14Z</dc:date>
    </item>
  </channel>
</rss>

