<?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 Copy File from one location to another in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Copy-File-from-one-location-to-another/m-p/1783452#M1209760</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have my source file in &lt;STRONG&gt;.dat&amp;nbsp;&lt;/STRONG&gt;format in location&amp;nbsp;&lt;STRONG&gt;&lt;U&gt;\\filer3\equiprd\reports\interco\MI&lt;/U&gt;&lt;/STRONG&gt; but it changes to some &lt;STRONG&gt;.dat.gz&lt;/STRONG&gt; format after 6 days. So I want to copy these file into another location&amp;nbsp;&lt;U&gt;&lt;STRONG&gt;\\delr2\rp\FDR\Desktop\TLM CCY\Export.&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Can someone help me with the script&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 17 Feb 2021 14:09:28 GMT</pubDate>
    <dc:creator>arpita</dc:creator>
    <dc:date>2021-02-17T14:09:28Z</dc:date>
    <item>
      <title>Copy File from one location to another</title>
      <link>https://community.qlik.com/t5/QlikView/Copy-File-from-one-location-to-another/m-p/1783452#M1209760</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have my source file in &lt;STRONG&gt;.dat&amp;nbsp;&lt;/STRONG&gt;format in location&amp;nbsp;&lt;STRONG&gt;&lt;U&gt;\\filer3\equiprd\reports\interco\MI&lt;/U&gt;&lt;/STRONG&gt; but it changes to some &lt;STRONG&gt;.dat.gz&lt;/STRONG&gt; format after 6 days. So I want to copy these file into another location&amp;nbsp;&lt;U&gt;&lt;STRONG&gt;\\delr2\rp\FDR\Desktop\TLM CCY\Export.&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Can someone help me with the script&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 14:09:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Copy-File-from-one-location-to-another/m-p/1783452#M1209760</guid>
      <dc:creator>arpita</dc:creator>
      <dc:date>2021-02-17T14:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: Copy File from one location to another</title>
      <link>https://community.qlik.com/t5/QlikView/Copy-File-from-one-location-to-another/m-p/1783607#M1209779</link>
      <description>&lt;P&gt;Hi Arpita,&lt;/P&gt;&lt;P&gt;This has been asked a few times in the community. A quick search returned this post with links to additional posts.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikView-App-Dev/Copy-Files/m-p/1020886" target="_blank"&gt;https://community.qlik.com/t5/QlikView-App-Dev/Copy-Files/m-p/1020886&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Make sure to check the Requirements of &lt;A href="https://help.qlik.com/en-US/sense/November2020/Subsystems/Hub/Content/Sense_Hub/Scripting/ScriptRegularStatements/Execute.htm" target="_self"&gt;EXECUTE&lt;/A&gt;&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If your .dat files are text-based you could could do a simple load and store sequence for each file in the directory:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="lucida sans unicode,lucida sans" size="3" color="#008080"&gt;LET vInputFolder = '&lt;U&gt;\\filer3\equiprd\reports\interco\MI\&lt;/U&gt;';&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="lucida sans unicode,lucida sans" size="3" color="#008080"&gt;LET vInputExtension = '.dat';&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="lucida sans unicode,lucida sans" size="3" color="#008080"&gt;LET vOutputFolder = '&amp;nbsp;&lt;U&gt;\\delr2\rp\FDR\Desktop\TLM CCY\Export&lt;/U&gt;\';&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="lucida sans unicode,lucida sans" size="3" color="#008080"&gt;For each vFile in FileList('$(vInputFolder)' &amp;amp; '*' &amp;amp; '$(vInputExtension)')&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="lucida sans unicode,lucida sans" size="3" color="#008080"&gt;CURRENT_FILE:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="lucida sans unicode,lucida sans" size="3" color="#008080"&gt;LOAD * FROM [$(vFile)]&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="lucida sans unicode,lucida sans" size="3" color="#008080"&gt;(txt, delimiter is spaces);&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="lucida sans unicode,lucida sans" size="3" color="#008080"&gt;LET vOutputPath = Replace('$(vFile)', '$(vInputFolder)', '$(vOutputFolder)');&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="lucida sans unicode,lucida sans" size="3" color="#008080"&gt;STORE CURRENT_FILE into [$(vOutputPath)] (txt, delimiter is spaces);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="lucida sans unicode,lucida sans" size="3" color="#008080"&gt;DROP TABLE CURRENT_FILE;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="lucida sans unicode,lucida sans" size="3" color="#008080"&gt;NEXT vFile;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="lucida sans unicode,lucida sans" size="3" color="#008080"&gt;LET vInputFolder=;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="lucida sans unicode,lucida sans" size="3" color="#008080"&gt;LET vInputExtension=;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="lucida sans unicode,lucida sans" size="3" color="#008080"&gt;LET vOutputFolder=;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="lucida sans unicode,lucida sans" size="3" color="#008080"&gt;LET vOutputPath=;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 21:32:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Copy-File-from-one-location-to-another/m-p/1783607#M1209779</guid>
      <dc:creator>haskia</dc:creator>
      <dc:date>2021-02-17T21:32:32Z</dc:date>
    </item>
  </channel>
</rss>

