<?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: Load Script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-Script/m-p/946163#M964869</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jamel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could set a variable with the today's date at the end of each store qvd procees. i.e:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STORE &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;temp_dw_slitemm INTO 'C:\yourPath\QVD$(tempVariable).qvd'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Andrés&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Oct 2015 11:47:20 GMT</pubDate>
    <dc:creator>andrespa</dc:creator>
    <dc:date>2015-10-09T11:47:20Z</dc:date>
    <item>
      <title>Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Script/m-p/946161#M964867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have setup a load script which includes a date/time stamp which I've called &lt;SPAN style="font-size: 13.3333px;"&gt;sl_date_written&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;temp_dw_slitemm:&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;&amp;nbsp; *,&lt;/P&gt;&lt;P&gt;&amp;nbsp; now() as 'sl_date_written';&lt;/P&gt;&lt;P&gt;sql&lt;/P&gt;&lt;P&gt;select&lt;/P&gt;&lt;P&gt;&amp;nbsp; customer as 'sl_customer',&lt;/P&gt;&lt;P&gt;&amp;nbsp; item_no as 'sl_item_no',&lt;/P&gt;&lt;P&gt;&amp;nbsp; dated as 'sl_dated',&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;amount as 'sl_amount'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;from&lt;/P&gt;&lt;P&gt;&amp;nbsp; dbo.sql_table&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STORE temp_dw_slitemm into Data\dw_slitemm.qvd;&lt;/P&gt;&lt;P&gt;drop table temp_dw_slitemm&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I would like to do is load this into a QVD file but keep the records every day (hope this makes sense?).&amp;nbsp; At the moment when the QVD loads it overwrites the records.&amp;nbsp; So I had records with yesterdays date, now after checking today I only have records in the QVD with today's date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to do this via a QV load? &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;If not I will have to create a SQL job to do this&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would appreciate any advice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Oct 2015 11:33:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Script/m-p/946161#M964867</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-09T11:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Script/m-p/946162#M964868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to use Incremental Load for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See below thread for implementing incremental load:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/48633"&gt;Incremental reload and store into QVD file&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Oct 2015 11:44:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Script/m-p/946162#M964868</guid>
      <dc:creator>jsingh71</dc:creator>
      <dc:date>2015-10-09T11:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Script/m-p/946163#M964869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jamel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could set a variable with the today's date at the end of each store qvd procees. i.e:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STORE &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;temp_dw_slitemm INTO 'C:\yourPath\QVD$(tempVariable).qvd'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Andrés&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Oct 2015 11:47:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Script/m-p/946163#M964869</guid>
      <dc:creator>andrespa</dc:creator>
      <dc:date>2015-10-09T11:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Script/m-p/946164#M964870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to adjust your STORE statement slightly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vToday = DATE(TODAY(),'YYYY-MM-DD'); // Here you will date stamp your QVD file and it will not overwrite previous //day fiel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STORE RESULT INTO vQVDPath\TableName_$(vToday).QVD(QVD);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Oct 2015 11:49:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Script/m-p/946164#M964870</guid>
      <dc:creator>Gabriel</dc:creator>
      <dc:date>2015-10-09T11:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Script/m-p/946165#M964871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Before the STORE statement, add this to your script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;CONCATENATE (&lt;SPAN style="color: #3d3d3d; font-size: 13px;"&gt;temp_dw_slitemm)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier; font-size: 13px;"&gt;LOAD *&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier; font-size: 13px;"&gt;FROM [&lt;SPAN style="color: #3d3d3d; font-size: 13px;"&gt;Data\dw_slitemm.qvd] (qvd);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'courier new', courier;"&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this way, the internal table will be expanded with all records stored so far, before writing a new version of the QVD to disk.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A true incremental load will first check for updated records and skip loading those from the history file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Oct 2015 12:00:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Script/m-p/946165#M964871</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-10-09T12:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Script/m-p/946166#M964872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for all your help guys.&amp;nbsp; Peter's answer was exactly what I had in mind &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Oct 2015 13:46:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Script/m-p/946166#M964872</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-09T13:46:02Z</dc:date>
    </item>
  </channel>
</rss>

