<?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 QVD File Management in Incremetnal Loads? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/QVD-File-Management-in-Incremetnal-Loads/m-p/861338#M301448</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am attempting to build an Incremental Load process for a reasonably High volume system which uses an Oracle Database as its source.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As such I have split the Load process into a number of steps, which can be outlined as followed:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step 1&lt;/STRONG&gt; (Extract): Read data from the DB and fetch any changes since the last run; store into timestamped QVD file for each table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step 2&lt;/STRONG&gt; (Staging): Read the available timestamped files for a table, append them into monthly partitioned QVD files for each table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step 3&lt;/STRONG&gt; (Transform): Load the appropriate Monthly files into the Datamodel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The steps are not coupled, meaning that Step 1 may generate a number of timestamped extracts for a certain table, which will then need to be processed into the monthly QVDs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The partitioning is done on the date the data is relevant to, not the update date - ie an extract file may contain data that needs to be split across multiple monthly files, which is one of the reasons Step 1 and Step 2 are separate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The question I have is how to manage the timestamped extract files once they have been loaded? I do not want to load them again, so need to somehow mark them as processed, or move them or (possibly) delete them from the filesystem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot see any mechanism in the script to make those sort of changes, and I cannot see any examples of anything that deals with files after they have been used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have any suggestions, comments, or possibly even directions to abetter way to do it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Jun 2015 09:47:38 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-06-19T09:47:38Z</dc:date>
    <item>
      <title>QVD File Management in Incremetnal Loads?</title>
      <link>https://community.qlik.com/t5/QlikView/QVD-File-Management-in-Incremetnal-Loads/m-p/861338#M301448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am attempting to build an Incremental Load process for a reasonably High volume system which uses an Oracle Database as its source.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As such I have split the Load process into a number of steps, which can be outlined as followed:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step 1&lt;/STRONG&gt; (Extract): Read data from the DB and fetch any changes since the last run; store into timestamped QVD file for each table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step 2&lt;/STRONG&gt; (Staging): Read the available timestamped files for a table, append them into monthly partitioned QVD files for each table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step 3&lt;/STRONG&gt; (Transform): Load the appropriate Monthly files into the Datamodel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The steps are not coupled, meaning that Step 1 may generate a number of timestamped extracts for a certain table, which will then need to be processed into the monthly QVDs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The partitioning is done on the date the data is relevant to, not the update date - ie an extract file may contain data that needs to be split across multiple monthly files, which is one of the reasons Step 1 and Step 2 are separate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The question I have is how to manage the timestamped extract files once they have been loaded? I do not want to load them again, so need to somehow mark them as processed, or move them or (possibly) delete them from the filesystem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot see any mechanism in the script to make those sort of changes, and I cannot see any examples of anything that deals with files after they have been used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have any suggestions, comments, or possibly even directions to abetter way to do it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jun 2015 09:47:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QVD-File-Management-in-Incremetnal-Loads/m-p/861338#M301448</guid>
      <dc:creator />
      <dc:date>2015-06-19T09:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: QVD File Management in Incremetnal Loads?</title>
      <link>https://community.qlik.com/t5/QlikView/QVD-File-Management-in-Incremetnal-Loads/m-p/861339#M301449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;once you have loaded a qvd, the data is in memory, so you might delete the qvd file without risking any damage since you can store the data to qvd again.&lt;/P&gt;&lt;P&gt;You can do this using the EXECUTE command. I have that in some app of mine, somebody here in the Community told me. The syntax is &amp;gt;&amp;gt; EXECUTE &lt;SPAN style="font-size: 8pt;"&gt;cmd.exe /C del [UNC_path_incl_filename_and_ending] &amp;lt;&amp;lt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I'm sure there would be other alternatives, but if this does not for some reason take longer than it should to execute, then this is a possibility.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;HTH&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jun 2015 10:00:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QVD-File-Management-in-Incremetnal-Loads/m-p/861339#M301449</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2015-06-19T10:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: QVD File Management in Incremetnal Loads?</title>
      <link>https://community.qlik.com/t5/QlikView/QVD-File-Management-in-Incremetnal-Loads/m-p/861340#M301450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That sounds like exactly what I need. Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll report back once I have experimented with it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jun 2015 10:38:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QVD-File-Management-in-Incremetnal-Loads/m-p/861340#M301450</guid>
      <dc:creator />
      <dc:date>2015-06-19T10:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: QVD File Management in Incremetnal Loads?</title>
      <link>https://community.qlik.com/t5/QlikView/QVD-File-Management-in-Incremetnal-Loads/m-p/861341#M301451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Works Perfectly - Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note1: I am using move rather than del, but it accepts two command line arguments without issue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note2: Use of EXECUTE requires the document to have this explicitly allowed in security. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jun 2015 15:50:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QVD-File-Management-in-Incremetnal-Loads/m-p/861341#M301451</guid>
      <dc:creator />
      <dc:date>2015-06-19T15:50:31Z</dc:date>
    </item>
  </channel>
</rss>

