<?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: Incremental load - INNER JOIN not working? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Incremental-load-INNER-JOIN-not-working/m-p/378853#M702907</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure, but be warned - it's a long and complicated script!&amp;nbsp; It is working well, but there are lots of components to the script which are not directly relevant to the incremental load problem.&amp;nbsp; Hopefully the green comments will help (I've used them to divide the script up into sections).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here comes...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Jan 2013 09:30:31 GMT</pubDate>
    <dc:creator>sarahallen1</dc:creator>
    <dc:date>2013-01-30T09:30:31Z</dc:date>
    <item>
      <title>Incremental load - INNER JOIN not working?</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-load-INNER-JOIN-not-working/m-p/378849#M702903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to tweak the reference guide's incremental load example (case 4: insert, update and delete - as on p512 of the attached reference manual) as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of using a database table with records, I want to use a folder location with Excel files.&amp;nbsp; I want the incremental load to work so that only new/updated files are read in, and any that have been deleted since the last execution are not loaded in.&amp;nbsp; For the moment I'm just trying to get a single QV table with 2 fields: FileName() as File, and FileTime() as ModifiedDate.&amp;nbsp; So my equivalent to the PrimaryKey field is FileName(), my equivalent to DB_TABLE is sort of the folder of files, and instead of a DB field "ModificationTime" I'm using FileTime().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Later on when I've got this simple file list load to work I'm going to loop over each file in the list and read in data from each (I've done this before successfully but without the incremental load).&amp;nbsp; But for now I can't even get the incremental load to work with the file list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My script is attached.&amp;nbsp; I have started the process off by just commenting out lines 23-24, 32-36 and 47-51.&amp;nbsp; So this just gets the complete file list when I reload (and creates an initial QVD with the full list).&amp;nbsp; Then I have uncommented 23-24 and 32-36, and this works - it gets any new files (18-26) and any "old" files that haven't been updated/added since the last execution.&amp;nbsp; This works, and after such a reload I get the QVD which I've attached. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem comes when I uncomment lines 47-52, the inner join statement - which I believe is supposed to cut out any files that have deleted since the last script execution (as the inner join returns the intersection of the current full file list with the new/updated/old ones, thus removing any deleted ones which are in the new/updated/old set).&amp;nbsp; When I load the script with this bit uncommented, there are no errors but all my data goes - as if the intersection is empty.&amp;nbsp; But this can't be right, as I've tried the script with everything commented out EXCEPT 48-52 (the table we are inner joining) and this is the same set of data as I had with ONLY 47-52 commented out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this makes sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've attached the source files I've been using too so you can test it yourself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks very much for your help - any explanation would be really appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sarah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2012 09:27:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-load-INNER-JOIN-not-working/m-p/378849#M702903</guid>
      <dc:creator>sarahallen1</dc:creator>
      <dc:date>2012-08-17T09:27:22Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental load - INNER JOIN not working?</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-load-INNER-JOIN-not-working/m-p/378850#M702904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you've got a number of problems with this approach. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. The INNER JOIN deletes all rows because with the wildcard file, the inner join is executed for each file -- with one row each. Turn on the document logfile in Settings, Document properties to see this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. I understand you want to build a list of current files in the directory and only do a reload for new files. Your wildcard approach will do this, but you may find it easier to use FOR EACH file in FILELIST().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. I would just build a table of files in the directory and then filter by date in the load loop. I wouldn't try to filter ion the table building loop. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if this helps &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Aug 2012 02:11:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-load-INNER-JOIN-not-working/m-p/378850#M702904</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2012-08-21T02:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental load - INNER JOIN not working?</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-load-INNER-JOIN-not-working/m-p/378851#M702905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks very much Rob, this is really helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understand point 1. now, it makes sense - should have thought to check the logfile so thanks for the tip!&amp;nbsp; For the moment, I've fixed it by creating a temporary table island "CurrentFileList" at the beginning of the script (with the * wildcard to pick up all files), then referring to this single table (rather than having to use a wildcard) when I come to the INNER JOIN statement later on.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The FOR EACH file in FILELIST() approach sounds sensible, thanks for the suggestion.&amp;nbsp; I will try it out and update this discussion when I know how it worked!&amp;nbsp; I have a lot of scripting to do now I've got the basic version of the incremental load working, so when I need to do an incremental load over a much more complicated script I think the FOR EACH loop idea will help a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your help is really appreciated &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sarah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Aug 2012 08:36:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-load-INNER-JOIN-not-working/m-p/378851#M702905</guid>
      <dc:creator>sarahallen1</dc:creator>
      <dc:date>2012-08-21T08:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental load - INNER JOIN not working?</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-load-INNER-JOIN-not-working/m-p/378852#M702906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi sarah, can you please share some example code for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jan 2013 08:10:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-load-INNER-JOIN-not-working/m-p/378852#M702906</guid>
      <dc:creator />
      <dc:date>2013-01-30T08:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental load - INNER JOIN not working?</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-load-INNER-JOIN-not-working/m-p/378853#M702907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure, but be warned - it's a long and complicated script!&amp;nbsp; It is working well, but there are lots of components to the script which are not directly relevant to the incremental load problem.&amp;nbsp; Hopefully the green comments will help (I've used them to divide the script up into sections).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here comes...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jan 2013 09:30:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-load-INNER-JOIN-not-working/m-p/378853#M702907</guid>
      <dc:creator>sarahallen1</dc:creator>
      <dc:date>2013-01-30T09:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental load - INNER JOIN not working?</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-load-INNER-JOIN-not-working/m-p/378854#M702908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class="CM19" style="margin-bottom: 9.85pt;"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;///$tab START &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM19" style="margin-bottom: 9.85pt;"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//============================================== &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM19" style="margin-bottom: 9.85pt;"&gt;&lt;STRONG&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;Let &lt;/SPAN&gt;&lt;EM style="color: #7f7f7f; font-size: 9pt;"&gt;vThisExecTime &lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;date#&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;Now&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;()); &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM19" style="margin-bottom: 9.85pt;"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//============================================== &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="Default"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;///$tab Main&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM19" style="margin-bottom: 9.85pt;"&gt;&lt;STRONG&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;SET &lt;/SPAN&gt;&lt;EM style="color: #7f7f7f; font-size: 9pt;"&gt;ThousandSep=','&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;SET &lt;/SPAN&gt;&lt;EM style="color: #7f7f7f; font-size: 9pt;"&gt;DecimalSep='.'&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;SET &lt;/SPAN&gt;&lt;EM style="color: #7f7f7f; font-size: 9pt;"&gt;MoneyThousandSep=','&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;SET &lt;/SPAN&gt;&lt;EM style="color: #7f7f7f; font-size: 9pt;"&gt;MoneyDecimalSep='.'&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;SET &lt;/SPAN&gt;&lt;EM style="color: #7f7f7f; font-size: 9pt;"&gt;MoneyFormat='£#,##0.00;(£#,##0.00)'&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;SET &lt;/SPAN&gt;&lt;EM style="color: #7f7f7f; font-size: 9pt;"&gt;TimeFormat='hh:mm:ss'&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;SET &lt;/SPAN&gt;&lt;EM style="color: #7f7f7f; font-size: 9pt;"&gt;DateFormat='DD/MM/YYYY'&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;SET &lt;/SPAN&gt;&lt;EM style="color: #7f7f7f; font-size: 9pt;"&gt;TimestampFormat='DD/MM/YYYY hh:mm:ss[.fff]'&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;SET &lt;/SPAN&gt;&lt;EM style="color: #7f7f7f; font-size: 9pt;"&gt;MonthNames&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;='Jan;Feb;Mar;Apr;May;Jun;Jul;Aug;Sep;Oct;Nov;Dec';&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;SET &lt;/SPAN&gt;&lt;EM style="color: #7f7f7f; font-size: 9pt;"&gt;DayNames&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;='Mon;Tue;Wed;Thu;Fri;Sat;Sun'; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="Default" style="margin-right: 160.35pt;"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;///$tab Daily Prices - inc load FIRST STEP //SET vFileLocation = 'Daily prices - all funds - SA TEST\Daily price files\';&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM20" style="margin-bottom: 20.1pt;"&gt;&lt;STRONG&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;SET &lt;/SPAN&gt;&lt;EM style="color: #7f7f7f; font-size: 9pt;"&gt;vFileLocation &lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;= '\\SERVER\folder1\folder2\'; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM20" style="margin-bottom: 20.1pt;"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ // CURRENT FILE LIST //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM19" style="margin-bottom: 9.85pt;"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//========================================================================================================== // Make a list of the current files //========================================================================================================== &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM2"&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;CurrentFileList: &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM3"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//OEICS:&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM4"&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;FIRST &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;1 &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt;"&gt;LOAD &lt;/STRONG&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;DISTINCT FileName&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;() &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;as &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;File_temp&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;FROM &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;[$(vFileLocation)*MAM??-??-??*.csv] (&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;txt&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;codepage is &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;1252, &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;no labels&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;delimiter is &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;',', &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;ms Concatenate &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM3"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//Onshore:&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM4"&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;FIRST &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;1 &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt;"&gt;LOAD &lt;/STRONG&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;DISTINCT FileName&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;() &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;as &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;File_temp&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;FROM &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;[$(vFileLocation)*MAMLSFund??-??-??*.csv] (&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;txt&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;codepage is &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;1252, &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;no labels&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;delimiter is Concatenate &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM3"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//LSFund:&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM4"&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;FIRST &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;1 &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt;"&gt;LOAD &lt;/STRONG&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;DISTINCT FileName&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;() &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;as &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;File_temp&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;FROM &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;[$(vFileLocation)*Price Sheet*.xls] (&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;biff&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;embedded labels&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;header is &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;3 &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;lines&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;table is &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;Sheet1$ &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;Concatenate &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM3"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//Global:&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM20" style="margin: 0 0 20.1pt 43.25pt;"&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;FIRST &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;1 &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt;"&gt;LOAD &lt;/STRONG&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;DISTINCT FileName&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;() &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;as &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;File_temp&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;FROM &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;[$(vFileLocation)*Prices Sheet*.xls] (&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;biff&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;embedded labels&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;header is &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;3 &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;lines&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;table is &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;Sheet1 &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM1"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//========================================================================================================== // Store the list of current files as a QVD (to refer to later in the inner join)//========================================================================================================== &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM20" style="margin: 0 0 20.1pt 21.6pt;"&gt;&lt;STRONG style="color: blue; font-size: 9pt;"&gt;STORE &lt;/STRONG&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;File_temp &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;as &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;File &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;FROM &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;CurrentFileList &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;INTO &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;CurrentFileList.QVD; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM1"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//========================================================================================================== // Make a variable listing the current files (to use in the "For each vFile in vFileList" statement later)//========================================================================================================== &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM19" style="margin: 0 0 9.85pt 21.6pt;"&gt;&lt;STRONG&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;LET &lt;/SPAN&gt;&lt;EM style="color: #7f7f7f; font-size: 9pt;"&gt;vFileList&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;=''; &lt;/SPAN&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//Start with a blank list &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM19" style="margin: 0 0 9.85pt 21.6pt;"&gt;&lt;STRONG&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;For &lt;/SPAN&gt;&lt;EM style="color: #7f7f7f; font-size: 9pt;"&gt;i&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;=0 &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;to NoOfRows&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;('CurrentFileList')-1 &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM3"&gt;&lt;STRONG&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;let &lt;/SPAN&gt;&lt;EM style="color: #7f7f7f; font-size: 9pt;"&gt;vFileList &lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;vFileList &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;&amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;Peek&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;('File_temp',&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;i&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;,'CurrentFileList') &amp;amp; ',' ; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="Default"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//Concatenate list of current files (with ',' separator) &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM19" style="margin: 0 0 2.75pt 21.6pt;"&gt;&lt;STRONG style="color: blue; font-size: 9pt;"&gt;Next&lt;/STRONG&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM20" style="text-indent: -151.25pt; margin: 0 0 20.1pt 172.75pt;"&gt;&lt;STRONG&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;LET &lt;/SPAN&gt;&lt;EM style="color: #7f7f7f; font-size: 9pt;"&gt;vFileList &lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;chr&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;(39)&amp;amp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;replace&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;Left&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;('$(vFileList)', &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;len&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;('$(vFileList)')-1) , ',' &lt;/SPAN&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//Remove the final &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;chr&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;(39)&amp;amp;','&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;chr&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;(39) ) &amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;chr&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;(39) ; &lt;/SPAN&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//The replace statement and surroundi &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM19" style="margin-bottom: 9.85pt;"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;// '2012-07-06 - MAM06-07-12.csv','2012-07-09 - MAM09-07-12.csv',.............,'2012-07-10 - MAMedi // This is the resulting format of vFileList &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM1"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//========================================================================================================== // Drop the script table once file list created (in QVD and vFileList), so as not to interfere with the fie //========================================================================================================== &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM5" style="text-indent: 21.6pt; margin-bottom: 80.6pt;"&gt;&lt;STRONG style="color: blue; font-size: 9pt;"&gt;DROP &lt;/STRONG&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;Table &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;CurrentFileList; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM19" style="margin-bottom: 9.85pt;"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;///$tab Daily Prices - data no dates//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ // NEW/UPDATED FILES//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM1"&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;Data: &lt;/SPAN&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//Start the table off so we can concatenate to it later on&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM1"&gt;&lt;STRONG style="color: blue; font-size: 9pt;"&gt;LOAD &lt;/STRONG&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;* &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;INLINE &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;[&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM5" style="text-indent: 21.6pt;"&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;File, Price, FundClass&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM19" style="text-indent: 21.6pt; margin: 0 457.1pt 9.85pt 0;"&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;Dummy, Dummy, Dummy]&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM19" style="margin-bottom: 9.85pt;"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;// WORK THROUGH THE CURRENT FILE LIST AND PICK OUT DATA FOR THOSE FILES WHICH ARE NEW/UPDATED SINCE LAST EX &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM1"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;// For each vFile in '2012-07-06 - MAM06-07-12.csv','2012-07-09 - MAM09-07-12.csv','2012-07-10 - MAM&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM21" style="margin: 0 0 24.95pt 5.35pt;"&gt;&lt;STRONG style="color: blue; font-size: 9pt;"&gt;For &lt;/STRONG&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;each &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #7f7f7f; font-size: 9pt;"&gt;vFile &lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;in &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #7f7f7f; font-size: 9pt;"&gt;$(vFileList) &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="CM1"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//========================================================================================================== I&lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt;"&gt;F &lt;/STRONG&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;FileTime&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;('$(vFileLocation)'&amp;amp;'$(vFile)') &amp;lt; '$(vLastExecTime)' &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;THEN &lt;/SPAN&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;// If the file has NOT been adde //========================================================================================================== &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM19" style="text-indent: -151.25pt; margin: 0 0 9.85pt 151.25pt;"&gt;&lt;STRONG&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;LET &lt;/SPAN&gt;&lt;EM style="color: #7f7f7f; font-size: 9pt;"&gt;vDummy &lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;= '$(vFile)';&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;// vDummy statement achieves nothing, just a quick script event to make &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM20" style="margin-bottom: 20.1pt;"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//========================================================================================================== ELS&lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt;"&gt;E &lt;/STRONG&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;// If the file HAS been added/updated since last execution://========================================================================================================== &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="Default" style="text-indent: 43.25pt;"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//----------------------------------------------------------------------------------------------­&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM3"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//OEICs&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM3"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//----------------------------------------------------------------------------------------------­&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM19" style="margin: 0 0 9.85pt 43.25pt;"&gt;&lt;STRONG style="color: blue; font-size: 9pt;"&gt;IF &lt;/STRONG&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;'$(vFile)' &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;like &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;'*MAM??-??-??*.csv' &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;THEN &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM7"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//----------­&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM7"&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;Concatenate &lt;/SPAN&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//Data:&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM19" style="margin: 0 0 9.85pt 64.75pt;"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//----------­&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM8"&gt;&lt;STRONG style="color: blue; font-size: 9pt;"&gt;LOAD &lt;/STRONG&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;FileName&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;() &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;as &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;File&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM9"&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;[Unrounded Prices] as Price, &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM9"&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;[Fund/Class] &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;as &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;FundClass&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="Default" style="text-indent: -151.25pt;"&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;FileName&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt;"&gt;()&amp;amp;'_'&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;[Fund/Class] &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;as PrimaryKey_File_FundClass &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="Default"&gt;&lt;SPAN style="font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;Yield &lt;/SPAN&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//ADDED IN 29/10/2012&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM8"&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;FROM &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;[$(vFileLocation)$(vFile)]&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM8"&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;txt&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;codepage is &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;1252, &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;embedded labels&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;delimiter is &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;',', &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;msq&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;header is &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;2 &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;lines&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;); &lt;/SPAN&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//----------------------------------------------------------------------------------------------­//Onshore Global &amp;amp; LSFund//----------------------------------------------------------------------------------------------­&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM19" style="margin: 0 0 9.85pt 43.25pt;"&gt;&lt;STRONG style="color: blue; font-size: 9pt;"&gt;ELSEIF &lt;/STRONG&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;'$(vFile)' &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;like &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;'*MAMLSFund??-??-??*.csv' &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;THEN &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM19" style="margin: 0 0 9.85pt 64.75pt;"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//----------­&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;Concatenate &lt;/SPAN&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//Data://----------­&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM11" style="text-indent: -21.65pt;"&gt;&lt;STRONG style="color: blue; font-size: 9pt;"&gt;LOAD &lt;/STRONG&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;FileName&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;() &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;as &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;File&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;[Unrounded Prices] &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;as &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;Price&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;[Fund/Class] &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;as &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;FundClass&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;FileName&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;()&amp;amp;'_'&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;[Fund/Class] &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;as &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;PrimaryKey_File_FundClass &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM20" style="text-indent: 43.25pt; margin: 0 0 20.1pt 108pt;"&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;Yield &lt;/SPAN&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//ADDED IN 29/10/2012&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;FROM &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;[$(vFileLocation)$(vFile)](&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;txt&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;codepage is &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;1252, &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;embedded labels&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;delimiter is &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;',', &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;msq&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;header is &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;2 &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;lines&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;); &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM10" style="margin: 0 14.5pt 0 43.25pt;"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//----------------------------------------------------------------------------------------------­//Offshore LSFund//----------------------------------------------------------------------------------------------­&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM19" style="margin: 0 0 9.85pt 43.25pt;"&gt;&lt;STRONG style="color: blue; font-size: 9pt;"&gt;ELSEIF &lt;/STRONG&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;'$(vFile)' &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;like &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;'*Price Sheet*.xls' &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;THEN &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM19" style="margin: 0 0 9.85pt 64.75pt;"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//----------­&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;Concatenate &lt;/SPAN&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//Data://----------­&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM11" style="text-indent: -21.65pt;"&gt;&lt;STRONG style="color: blue; font-size: 9pt;"&gt;LOAD &lt;/STRONG&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;FileName&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;() &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;as &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;File&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;Name &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;as &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;FundClass&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;[NAV / Share] &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;as &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;Price&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;FileName&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;()&amp;amp;'_'&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;Name &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;as &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;PrimaryKey_File_FundClass &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM8"&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;FROM &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM19" style="margin: 0 0 9.85pt 108pt;"&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;[$(vFileLocation)$(vFile)](&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;biff&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;embedded labels&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;header is &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #7f7f7f; font-size: 9pt;"&gt;$(if(only(@2)='Previous NAV',2,3)) &lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;lines&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//4-Jan-13 edit: the format sometime &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;table is &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;Sheet1$, &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;filters&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;Remove&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;Row&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;RowCnd&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;CellValue&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;, 4, &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;StrCnd&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;null&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;))) )); &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM10" style="margin: 0 14.5pt 0 43.25pt;"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//----------------------------------------------------------------------------------------------­//Offshore Global//----------------------------------------------------------------------------------------------­&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM19" style="margin: 0 0 9.85pt 43.25pt;"&gt;&lt;STRONG style="color: blue; font-size: 9pt;"&gt;ELSEIF &lt;/STRONG&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;'$(vFile)' &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;like &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;'*Prices Sheet*.xls' &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;THEN &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM19" style="margin: 0 0 9.85pt 64.75pt;"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//----------­&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;Concatenate &lt;/SPAN&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//Data://----------­&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM11" style="text-indent: -21.65pt;"&gt;&lt;STRONG style="color: blue; font-size: 9pt;"&gt;LOAD &lt;/STRONG&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;FileName&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;() &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;as &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;File&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;Name &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;as &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;FundClass&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;[NAV / Share] &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;as &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;Price&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;FileName&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;()&amp;amp;'_'&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;Name &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;as &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;PrimaryKey_File_FundClass &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM19" style="margin: 0 0 9.85pt 108pt;"&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;FROM &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;[$(vFileLocation)$(vFile)](&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;biff&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;embedded labels&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;header is &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;2 &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;lines&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;table is &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;Sheet1$, &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;filters&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;Remove&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;Row&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;RowCnd&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;CellValue&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;, 4, &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;StrCnd&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;null&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;))) )); &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM3"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//----------------------------------------------------------------------------------------------­//NB: Shouldn't actually reach this 'ELSE'. The various formats of vFile covered in the IF/ELSEIF s // should be the only posibilities for vFile, given the construction of CurrentFileList and //----------------------------------------------------------------------------------------------­&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM19" style="margin: 0 0 9.85pt 43.25pt;"&gt;&lt;STRONG&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;ELSE LET &lt;/SPAN&gt;&lt;EM style="color: #7f7f7f; font-size: 9pt;"&gt;vDummy &lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;= '$(vFile)'; &lt;/SPAN&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;// vDummy statement achieves nothing, just a quick script event to make &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM3"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//----------------------------------------------------------------------------------------------­&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM3"&gt;&lt;STRONG style="color: blue; font-size: 9pt;"&gt;ENDIF&lt;/STRONG&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM21" style="margin: 0 0 30.25pt 43.25pt;"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//----------------------------------------------------------------------------------------------­&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM1"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//========================================================================================================== &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM1"&gt;&lt;STRONG style="color: blue; font-size: 9pt;"&gt;ENDIF&lt;/STRONG&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM19" style="margin-bottom: 9.85pt;"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//========================================================================================================== &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM22" style="margin-bottom: 35.05pt;"&gt;&lt;STRONG&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;Next &lt;/SPAN&gt;&lt;EM style="color: #7f7f7f; font-size: 9pt;"&gt;vFile&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM19" style="margin-bottom: 9.85pt;"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ // FILES THAT ARE NOT NEW/UPDATED (could include files that have since been deleted)//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM1"&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;Concatenate &lt;STRONG&gt;LOAD &lt;/STRONG&gt;DISTINCT &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;* &lt;/SPAN&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//File, Price, FundClass, PrimaryKey_File_FundClass &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;From &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;[PricesHistory_Data.QVD] (&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;qvd&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;WHERE Not Exists&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;PrimaryKey_File_FundClass&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//Where we didn't pick up the data in the stage above (i.e. igno &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM21" style="margin-bottom: 30.25pt;"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;// &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM19" style="margin-bottom: 9.85pt;"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ // EXPORT TO QVD//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM20" style="margin-bottom: 20.1pt;"&gt;&lt;STRONG style="color: blue; font-size: 9pt;"&gt;STORE &lt;/STRONG&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;* &lt;/SPAN&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//File, Price, FundClass, PrimaryKey_File_FundClass &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;FROM &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;Data &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;INTO &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;PricesHistory_Data.QVD ; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM20" style="margin-bottom: 20.1pt;"&gt;&lt;STRONG style="color: blue; font-size: 9pt;"&gt;DROP &lt;/STRONG&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;Field &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;PrimaryKey_File_FundClass&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM19" style="margin-bottom: 9.85pt;"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;///$tab Daily Prices - separate dates//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ // NEW/UPDATED FILES//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM1"&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;Dates: &lt;/SPAN&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//Start the table off so we can concatenate to it later on&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM1"&gt;&lt;STRONG style="color: blue; font-size: 9pt;"&gt;LOAD &lt;/STRONG&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;* &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;INLINE &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;[&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM2"&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;File2, Date&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM19" style="text-indent: 21.6pt; margin: 0 495pt 9.85pt 0;"&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;Dummy, Dummy]&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM19" style="margin-bottom: 9.85pt;"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;// WORK THROUGH THE CURRENT FILE LIST AND PICK OUT DATA FOR THOSE FILES WHICH ARE NEW/UPDATED SINCE LAST EX &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM1"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;// For each vFile in '2012-07-06 - MAM06-07-12.csv','2012-07-09 - MAM09-07-12.csv','2012-07-10 - MAM&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM21" style="margin: 0 0 24.95pt 5.35pt;"&gt;&lt;STRONG style="color: blue; font-size: 9pt;"&gt;For &lt;/STRONG&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;each &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #7f7f7f; font-size: 9pt;"&gt;vFile &lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;in &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #7f7f7f; font-size: 9pt;"&gt;$(vFileList) &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="CM1"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//========================================================================================================== I&lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt;"&gt;F &lt;/STRONG&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;FileTime&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;('$(vFileLocation)'&amp;amp;'$(vFile)') &amp;lt; '$(vLastExecTime)' &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;THEN &lt;/SPAN&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;// If the file has NOT been adde //========================================================================================================== &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM19" style="margin: 0 0 9.85pt 43.25pt;"&gt;&lt;STRONG&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;LET &lt;/SPAN&gt;&lt;EM style="color: #7f7f7f; font-size: 9pt;"&gt;vDummy &lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;= '$(vFile)'; &lt;/SPAN&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;// vDummy statement achieves nothing, just a quick script event to make &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM1"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//========================================================================================================== ELS&lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt;"&gt;E &lt;/STRONG&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;// If the file HAS been added/updated since last execution://========================================================================================================== &lt;/SPAN&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//----------------------------------------------------------------------------------------------­//OEICs//----------------------------------------------------------------------------------------------­&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM19" style="margin-bottom: 9.85pt;"&gt;&lt;STRONG style="color: blue; font-size: 9pt;"&gt;IF &lt;/STRONG&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;'$(vFile)' &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;like &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;'*MAM??-??-??*.csv' &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;THEN &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM19" style="margin: 0 0 9.85pt 21.6pt;"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//----------­&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;Concatenate &lt;/SPAN&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//Dates://----------­&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM7"&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;FIRST &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;1 &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt;"&gt;LOAD &lt;/STRONG&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;FileName() as File2, &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM19" style="text-indent: 21.6pt; margin: 0 0 9.85pt 64.75pt;"&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;@4 &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;as &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;Date &lt;/SPAN&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//date(date#(@4),'DD/MM/YYYY') as Date&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;FROM &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;[$(vFileLocation)$(vFile)](&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;txt&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;codepage is &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;1252, &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;no labels&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;delimiter is &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;',', &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;msq&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;); &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM12" style="margin-right: 14.5pt;"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//----------------------------------------------------------------------------------------------­//Onshore Global &amp;amp; LSFund//----------------------------------------------------------------------------------------------­&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM19" style="margin-bottom: 9.85pt;"&gt;&lt;STRONG style="color: blue; font-size: 9pt;"&gt;ELSEIF &lt;/STRONG&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;'$(vFile)' &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;like &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;'*MAMLSFund??-??-??*.csv' &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;THEN &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM19" style="margin: 0 0 9.85pt 21.6pt;"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//----------­&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;Concatenate &lt;/SPAN&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//Dates://----------­&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM7"&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;FIRST &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;1 &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt;"&gt;LOAD &lt;/STRONG&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;FileName() as File2, &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM19" style="text-indent: 21.6pt; margin: 0 0 9.85pt 64.75pt;"&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;@4 &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;as &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;Date &lt;/SPAN&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//date(date#(@4),'DD/MM/YYYY') as Date&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;FROM &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;[$(vFileLocation)$(vFile)](&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;txt&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;codepage is &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;1252, &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;no labels&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;delimiter is &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;',', &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;msq&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;); &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM12" style="margin-right: 14.5pt;"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//----------------------------------------------------------------------------------------------­//Offshore LSFund//----------------------------------------------------------------------------------------------­&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM19" style="margin-bottom: 9.85pt;"&gt;&lt;STRONG style="color: blue; font-size: 9pt;"&gt;ELSEIF &lt;/STRONG&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;'$(vFile)' &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;like &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;'*Price Sheet*.xls' &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;THEN &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM19" style="margin: 0 0 9.85pt 21.6pt;"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//----------­&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;Concatenate &lt;/SPAN&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//Dates://----------­&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM7"&gt;&lt;STRONG style="color: blue; font-size: 9pt;"&gt;LOAD &lt;/STRONG&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;FileName&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;() &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;as &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;File2&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM19" style="text-indent: 21.6pt; margin: 0 0 9.85pt 64.75pt;"&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;date&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;date#&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;[Pricing Date]&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;),'DD/MM/YYYY') &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;as &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;Date &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;FROM &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;[$(vFileLocation)$(vFile)](&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;biff&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;embedded labels&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;header is &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #7f7f7f; font-size: 9pt;"&gt;$(if(only(@2)='Previous NAV',2,3)) &lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;lines&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//4-Jan-13 edit: the format sometime &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;table is &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;Sheet1$, &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;filters&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;Remove&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;Row&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;RowCnd&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;CellValue&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;, 4, &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;StrCnd&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;null&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;))) )); &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM12" style="margin-right: 14.5pt;"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//----------------------------------------------------------------------------------------------­//Offshore Global//----------------------------------------------------------------------------------------------­&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM19" style="margin-bottom: 9.85pt;"&gt;&lt;STRONG style="color: blue; font-size: 9pt;"&gt;ELSEIF &lt;/STRONG&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;'$(vFile)' &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;like &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;'*Prices Sheet*.xls' &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;THEN &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM19" style="margin: 0 0 9.85pt 21.6pt;"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//----------­&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;Concatenate &lt;/SPAN&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//Dates://----------­&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM7"&gt;&lt;STRONG style="color: blue; font-size: 9pt;"&gt;LOAD &lt;/STRONG&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;FileName&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;() &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;as &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;File2&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM19" style="text-indent: 21.6pt; margin: 0 0 9.85pt 64.75pt;"&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;date&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;date#&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;[Pricing Date]&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;),'DD/MM/YYYY') &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;as &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;Date &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;FROM &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;[$(vFileLocation)$(vFile)](&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;biff&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;embedded labels&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;header is &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;2 &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;lines&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;table is &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;Sheet1$, &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;filters&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;Remove&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;Row&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;RowCnd&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;CellValue&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;, 4, &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;StrCnd&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;null&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;))) )); &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM1"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//----------------------------------------------------------------------------------------------­//NB: Shouldn't actually reach this 'ELSE'. The various formats of vFile covered in the IF/ELSEIF s // should be the only posibilities for vFile, given the construction of CurrentFileList and //----------------------------------------------------------------------------------------------­&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM19" style="margin-bottom: 9.85pt;"&gt;&lt;STRONG&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;ELSE LET &lt;/SPAN&gt;&lt;EM style="color: #7f7f7f; font-size: 9pt;"&gt;vDummy &lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;= '$(vFile)'; &lt;/SPAN&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;// vDummy statement achieves nothing, just a quick script event to make &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM1"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//----------------------------------------------------------------------------------------------­&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM1"&gt;&lt;STRONG style="color: blue; font-size: 9pt;"&gt;ENDIF&lt;/STRONG&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM1"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//----------------------------------------------------------------------------------------------­//========================================================================================================== &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="Default"&gt;&lt;SPAN style="color: windowtext;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="Default"&gt;&lt;STRONG style="color: blue; font-size: 9pt;"&gt;ENDIF&lt;/STRONG&gt;&lt;SPAN style="font-size: 9pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM19" style="margin-bottom: 9.85pt;"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//========================================================================================================== &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="Default" style="margin-bottom: 45.1pt;"&gt;&lt;STRONG&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;Next &lt;/SPAN&gt;&lt;EM style="color: #7f7f7f; font-size: 9pt;"&gt;vFile&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 9pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM19" style="margin-bottom: 9.85pt;"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ // FILES THAT ARE NOT NEW/UPDATED (could include files that have since been deleted)//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM1" style="margin-bottom: 60.5pt;"&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;Concatenate &lt;STRONG&gt;LOAD &lt;/STRONG&gt;DISTINCT &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;* &lt;/SPAN&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//File2, Date&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;From &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;[PricesHistory_Dates.QVD] (&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;qvd&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;WHERE Not Exists&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;File2&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//Where we didn't pick up the data in the stage above (i.e. ignore updated files as&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM19" style="margin-bottom: 9.85pt;"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ // EXPORT TO QVD//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM19" style="margin-bottom: 9.85pt;"&gt;&lt;STRONG style="color: blue; font-size: 9pt;"&gt;STORE &lt;/STRONG&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;* &lt;/SPAN&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//File2, Date&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;FROM &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;Dates &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;INTO &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;PricesHistory_Dates.QVD ; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM1"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;///$tab Daily Prices - join data and dates&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM19" style="margin-bottom: 9.85pt;"&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;Daily_Prices: &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM19" style="margin-bottom: 9.85pt;"&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;NoConcatenate &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM2"&gt;&lt;STRONG style="color: blue; font-size: 9pt;"&gt;LOAD &lt;/STRONG&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;DISTINCT &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM3"&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;File&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;Price&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;FundClass &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM19" style="text-indent: 43.25pt; margin: 0 0 9.85pt 21.6pt;"&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;Yield &lt;/SPAN&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//ADDED IN 29/10/2012&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;Resident &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;Data; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM19" style="margin-bottom: 9.85pt;"&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;Left Join &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;(Daily_Prices) &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="Default" style="text-indent: -21.65pt;"&gt;&lt;STRONG style="color: blue; font-size: 9pt;"&gt;LOAD &lt;/STRONG&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;DISTINCT &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;File2 &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;as &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;File&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;Date &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM21" style="margin: 0 0 30.25pt 21.6pt;"&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;Resident &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;Dates; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM1"&gt;&lt;STRONG style="color: blue; font-size: 9pt;"&gt;DROP &lt;/STRONG&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;Tables &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;Data, Dates;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM19" style="margin-bottom: 9.85pt;"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;///$tab Daily Prices - inc load LAST STEP//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ // CUT OUT ANY FILES THAT HAVE BEEN DELETED SINCE LAST EXECUTION //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM19" style="margin-bottom: 9.85pt;"&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;Inner Join &lt;/SPAN&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//To Daily_Prices (=Dates+Data) tablea above&lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt;"&gt;LOAD &lt;/STRONG&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;DISTINCT &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;* &lt;/SPAN&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//File&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;FROM &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;CurrentFileList.QVD (&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;qvd&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;); &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM21" style="margin: 0 57.75pt 30.25pt 0;"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//NB This inner join also cuts out the 'Dummy' record ('Dummy' for File, Price, FundClass, Date),// since it gives the intersection with the current list of files (which includes no dummies) &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="Default" style="margin-right: 117.1pt;"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;///$tab History//************************************************************************************//BRINGING IN THE FULL HISTORY NOW (SEPARATE SOURCE - ALL FUNDS TOGETHER)// This history table will now be concatenated with the "Daily_Prices" table above &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM1"&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;Concatenate &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM1"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//Prices_History:&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="Default" style="text-indent: -27pt;"&gt;&lt;STRONG style="color: blue; font-size: 9pt;"&gt;LOAD&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;date&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt;"&gt;,'DD/MM/YYYY') &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;as &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;FundClass&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;Price &lt;/SPAN&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//,//date(Date,'DD/MM/YYYY')&amp;amp;'__'&amp;amp;FundClass&amp;amp;'__'&amp;amp;Price as #Date__FundClass__Price &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM2"&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;FROM &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM2"&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;[\\MAM-file01\MAM\Operations\Daily prices - all funds - SA TEST\SOURCE - Historical Prices.xlsx]&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM1"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;// [Daily prices - all funds - SA TEST\SOURCE - Historical Prices.xlsx]&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM2"&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;ooxml&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;embedded labels&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;table is &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;[AS IMPORTED 7 AUG 2012]); &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM21" style="margin-bottom: 30.25pt;"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//************************************************************************************ &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM1"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;///$tab Fund identifiers etc&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM1"&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;NoConcatenate &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM1"&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;Fund_identifiers: &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM14" style="text-indent: -27pt;"&gt;&lt;STRONG style="color: blue; font-size: 9pt;"&gt;LOAD&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;FundClass&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;Fund&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;[Share Class]&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;Sedol&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;ISIN&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;Currency&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM1"&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;FROM &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM1"&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;[\\MAM-file01\MAM\Operations\Daily prices - all funds - SA TEST\SOURCE - Fund identifiers.xls]&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM1"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//[Daily prices - all funds - SA TEST\SOURCE - Fund identifiers.xls]&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM20" style="margin-bottom: 20.1pt;"&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;biff&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;embedded labels&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;table is &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;Sheet1$); &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM15" style="margin-right: 300.6pt;"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//------------------------------------------­// Now join the identifier info into the data table//-------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM1"&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;NoConcatenate &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM22" style="text-indent: -21.65pt; margin-bottom: 40.35pt;"&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;Prices_temp:&lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt;"&gt;Load &lt;/STRONG&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;* &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;Resident &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;Daily_Prices; &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;Left Join &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;(Prices_temp) &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt;"&gt;Load &lt;/STRONG&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;* &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;Resident &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;Fund_identifiers; &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt;"&gt;DROP &lt;/STRONG&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;Tables &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;Daily_Prices, Fund_identifiers; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM1"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//------------------------------------------­// Now tidy up the prices/currencies so everything is in MAMor units, e.g. 1.0175 GBP rather than 101.75 GB //-------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM1"&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;NoConcatenate &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM1"&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;Prices_final: &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM14" style="text-indent: -27pt;"&gt;&lt;STRONG style="color: blue; font-size: 9pt;"&gt;LOAD&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//#Date__FundClass__Price,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM2"&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;FundClass&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;Currency&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;='GB Pence' &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;OR &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;Currency&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;='USD Cent' &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;OR &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;Currency&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;='EUR Cent',&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;Price&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;/100,&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;Price&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;as &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;Price&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;Fund&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;[Share Class]&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;Sedol&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;ISIN&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM19" style="text-indent: -21.65pt; margin-bottom: 9.85pt;"&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;Currency&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;='GB Pence','GBP', &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;Currency&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;='USD Cent', 'USD', &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;Currency&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;='EUR Cent', 'EUR', &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;Currency&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;))) ,&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;Yield &lt;/SPAN&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//ADDED IN 29/10/2012&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;Resident &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;Prices_temp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM1"&gt;&lt;STRONG style="color: blue; font-size: 9pt;"&gt;DROP &lt;/STRONG&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;Table &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;Prices_temp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM1"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;///$tab Export Prices to CSV&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM1"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//***************************************************************************&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM1"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;// Temporarily disabled whilst editing script&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM19" style="margin-bottom: 9.85pt;"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//*************************************************************************** &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM20" style="margin-bottom: 20.1pt;"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;////STORE// Date, // Price,// Fund,// [Share Class], // Sedol, // ISIN,// Currency//FROM Prices_final //INTO \\MAM-file01\MAM\Operations\Daily prices - all funds - SA TEST\EXPORT_Prices.csv (txt); &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM16" style="text-indent: -21.65pt;"&gt;&lt;STRONG style="color: blue; font-size: 9pt;"&gt;STORE &lt;/STRONG&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;Price&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;Fund&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;[Share Class]&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;Sedol&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;ISIN&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;Currency&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM1"&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;FROM &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;Prices_final &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM19" style="margin-bottom: 9.85pt;"&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;INTO &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;\\MAM-file01\MAM\Operations\Daily prices -all funds -SA TEST\EXPORT_Prices.csv (&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;txt&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;); &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM19" style="margin-bottom: 9.85pt;"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;////STORE// Date, // Price,// Fund,// [Share Class], // Sedol, // ISIN,// Currency//FROM Prices_final //INTO EXPORT_Prices2.csv (txt);///$tab Dividends &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM1"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//----------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM1"&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;NoConcatenate &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM1"&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;Dividends_temp1: &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM19" style="margin-bottom: 9.85pt;"&gt;&lt;STRONG style="color: blue; font-size: 9pt;"&gt;LOAD &lt;/STRONG&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;date&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;[XD Date]&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;,'DD/MM/YYYY') &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;as &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;[XD Date]&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM2"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//*****&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM2"&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;date&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;[XD Date]&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;,'DD/MM/YYYY') &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;as &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM19" style="margin: 0 0 9.85pt 21.6pt;"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//***** &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM17"&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;date&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;[Pay Date]&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;,'DD/MM/YYYY') &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;as &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;[Pay Date]&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM19" style="margin: 0 0 9.85pt 27pt;"&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;Sedol&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM19" style="margin: 0 0 9.85pt 27pt;"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//[Fund Name],//[Share Class Name],//[Share Class Number],//[Interest / Dividend], &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM2"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;// Currency,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM20" style="margin: 0 0 20.1pt 43.25pt;"&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;[Distribution Rate - Gross]&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;[Distribution Rate - Net] &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM1"&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;FROM &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM1"&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;[\\MAM-file01\MAM\Operations\Daily prices - all funds - SA TEST\SOURCE - historical dividend rates.xlsx]&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM1"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//[Daily prices - all funds - SA TEST\SOURCE - historical dividend rates.xlsx] &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM1"&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;ooxml&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;embedded labels&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;header is &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;1 &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;lines&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;table is &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;Dividends, &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;filters&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;( &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="Default" style="text-indent: -21.65pt; margin: 0 370.75pt 0 21.6pt;"&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;Remove&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;Row&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;RowCnd&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;Compound&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;RowCnd&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;CellValue&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt;"&gt;, 8, &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;StrCnd&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;null&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt;"&gt;)), &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;RowCnd&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;CellValue&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt;"&gt;, 9, &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;StrCnd&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;null&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="Default" style="margin-right: 565.1pt;"&gt;&lt;SPAN style="font-size: 9pt;"&gt;))));&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM21" style="margin-bottom: 30.25pt;"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//----------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM1"&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;NoConcatenate &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM1"&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;Fund_identifiers_2: &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM14" style="text-indent: -27pt;"&gt;&lt;STRONG style="color: blue; font-size: 9pt;"&gt;LOAD&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;FundClass&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;Fund&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;[Share Class]&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;Sedol&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;ISIN&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;Currency&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM1"&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;FROM &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM1"&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;[\\MAM-file01\MAM\Operations\Daily prices - all funds - SA TEST\SOURCE - Fund identifiers.xls]&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM1"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//[Daily prices - all funds - SA TEST\SOURCE - Fund identifiers.xls]&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM20" style="margin-bottom: 20.1pt;"&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;biff&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;embedded labels&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;table is &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;Sheet1$); &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM15" style="margin-right: 300.6pt;"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//------------------------------------------­// Now join the identifier info into the data table//-------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM1"&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;NoConcatenate &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM22" style="text-indent: -21.65pt; margin-bottom: 40.35pt;"&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;Dividends_temp2: &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt;"&gt;Load &lt;/STRONG&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;* &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;Resident &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;Dividends_temp1; &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;Left Join &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;(Dividends_temp2) &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt;"&gt;Load &lt;/STRONG&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;* &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;Resident &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;Fund_identifiers_2; &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt;"&gt;DROP &lt;/STRONG&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;Tables &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;Dividends_temp1, Fund_identifiers_2; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM1"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//------------------------------------------­// Now tidy up the prices/currencies so everything is in MAMor units, e.g. 1.0175 GBP rather than 101.75 GB //-------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM1"&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;NoConcatenate &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM1"&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;Dividends: &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM16" style="text-indent: -21.65pt;"&gt;&lt;STRONG style="color: blue; font-size: 9pt;"&gt;LOAD &lt;/STRONG&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;[XD Date]&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;[Pay Date]&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;FundClass&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;Currency&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;='GB Pence' &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;OR &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;Currency&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;='USD Cent' &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;OR &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;Currency&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;='EUR Cent',&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;[Distribution Rate - Gross]&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;/100,&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;[Di &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;Currency&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;='GB Pence' &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;OR &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;Currency&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;='USD Cent' &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;OR &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;Currency&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;='EUR Cent',&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;[Distribution Rate - Net]&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;/100,&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;[Dist Fund&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;[Share Class]&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;Sedol&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;ISIN&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;Currency&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;='GB Pence','GBP', &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;Currency&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;='USD Cent', 'USD', &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;Currency&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;='EUR Cent', 'EUR', &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;Currency&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;))) &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM19" style="margin-bottom: 9.85pt;"&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;Resident &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;Dividends_temp2; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM14" style="text-indent: -27pt;"&gt;&lt;STRONG style="color: blue; font-size: 9pt;"&gt;DROP&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;Table &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;Dividends_temp2;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM19" style="margin: 0 165.75pt 9.85pt 0;"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;///$tab Export Dividends to CSV//***************************************************************************// Temporarily disabled whilst editing script//*************************************************************************** &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM1"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;////STORE// [XD Date], // [Pay Date],// [Distribution Rate - Gross],// [Distribution Rate - Net],// Fund,// [Share Class], // Sedol, // ISIN,// Currency &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM20" style="margin-bottom: 20.1pt;"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//FROM Dividends//INTO \\MAM-file01\MAM\Operations\Daily prices - all funds - SA TEST\EXPORT_Dividends.csv (txt); &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="Default"&gt;&lt;SPAN style="color: windowtext;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM1"&gt;&lt;STRONG style="color: blue; font-size: 9pt;"&gt;STORE &lt;/STRONG&gt;&lt;/P&gt;&lt;P class="CM2"&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;[XD Date]&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;[Pay Date]&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;[Distribution Rate - Gross]&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;[Distribution Rate - Net]&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;Fund&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;[Share Class]&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;Sedol&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;ISIN&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;Currency&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM20" style="margin-bottom: 20.1pt;"&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;FROM &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;Dividends &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;INTO &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;\\MAM-file01\MAM\Operations\Daily prices -all funds -SA TEST\EXPORT_Dividends.csv (&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;txt&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;); &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="Default"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//STORE&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="Default"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;// [XD Date], &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="Default"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;// [Pay Date],&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="Default"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;// [Distribution Rate - Gross],&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="Default"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;// [Distribution Rate - Net],&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="Default"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;// Fund,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="Default"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;// [Share Class], &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="Default"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;// Sedol, &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="Default"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;// ISIN,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="Default"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;// Currency&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="Default"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//FROM Dividends&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="Default"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//INTO EXPORT_Dividends2.csv (txt);&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM1"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;///$tab Join Prices &amp;amp; Dividends&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM1"&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;NoConcatenate &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM22" style="text-indent: -21.65pt; margin: 0 85pt 40.35pt 43.25pt;"&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;Prices_and_Dividends_temp: &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt;"&gt;Load &lt;/STRONG&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;* &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;Resident &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;Prices_final; &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;Join &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;(Prices_and_Dividends_temp) &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt;"&gt;Load &lt;/STRONG&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;* &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;Resident &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;Dividends; &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt;"&gt;DROP &lt;/STRONG&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;Tables &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;Prices_final, Dividends; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM1"&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;Prices_and_Dividends: &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM16" style="text-indent: -21.65pt;"&gt;&lt;STRONG style="color: blue; font-size: 9pt;"&gt;LOAD &lt;/STRONG&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;*,&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;day&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;as &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;Day&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;month&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;as &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;year&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;as &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;Year &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM19" style="margin-bottom: 9.85pt;"&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;Resident &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;Prices_and_Dividends_temp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM1"&gt;&lt;STRONG style="color: blue; font-size: 9pt;"&gt;DROP &lt;/STRONG&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;Table &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;Prices_and_Dividends_temp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM19" style="margin-bottom: 9.85pt;"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;///$tab FINISH &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM18"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//==============================================&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM19" style="margin-bottom: 9.85pt;"&gt;&lt;STRONG style="color: blue; font-size: 9pt;"&gt;If &lt;/STRONG&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;ScriptErrorCount &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;= 0 &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;then &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM19" style="margin-bottom: 9.85pt;"&gt;&lt;STRONG&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;Let &lt;/SPAN&gt;&lt;EM style="color: #7f7f7f; font-size: 9pt;"&gt;vLastExecTime &lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;vThisExecTime&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="Default"&gt;&lt;SPAN style="color: windowtext;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM1"&gt;&lt;STRONG style="color: blue; font-size: 9pt;"&gt;End &lt;/STRONG&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;If &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="CM18"&gt;&lt;SPAN style="color: green; font-size: 9pt;"&gt;//============================================== &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jan 2013 09:30:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-load-INNER-JOIN-not-working/m-p/378854#M702908</guid>
      <dc:creator>sarahallen1</dc:creator>
      <dc:date>2013-01-30T09:30:56Z</dc:date>
    </item>
  </channel>
</rss>

