<?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: Store QVD file, using field name in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Store-QVD-file-using-field-name/m-p/100585#M763659</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maybe something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;LOAD 1,2,3,4,[HOSTNAME]&lt;/P&gt;&lt;P&gt;from yoursource;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vHostName = peek([HOSTNAME],0);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;YourData:&lt;/P&gt;&lt;P&gt;LOAD * from yoursource;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STORE YourData into vHostName.qvd (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;André Gomes&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Aug 2018 16:22:21 GMT</pubDate>
    <dc:creator>agomes1971</dc:creator>
    <dc:date>2018-08-02T16:22:21Z</dc:date>
    <item>
      <title>Store QVD file, using field name</title>
      <link>https://community.qlik.com/t5/QlikView/Store-QVD-file-using-field-name/m-p/100582#M763656</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;Can anyone help with this please, I am really struggling.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a typical load script as below, that will only ever contain one row of data:&lt;/P&gt;&lt;P&gt;table:&lt;/P&gt;&lt;P&gt;LOAD 1,2,3,4,HOSTNAME&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The hostname is a file path, example &lt;STRONG style="color: #ff0000;"&gt;c:\file.csv&lt;/STRONG&gt; or &lt;STRONG style="color: #ff0000;"&gt;\\pcname\c$\file.csv&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am then trying to store the file, &lt;/P&gt;&lt;P&gt;store [table] into [$HOSTNAME] (txt, delimiter is '|');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whenever the script is run, it should dynamically store the file, according to the folder/file location in the HOSTNAME field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help please, have trawled the forums for hours searching for an example that works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Store-QVD-file-using-field-name/m-p/100582#M763656</guid>
      <dc:creator>mattbrain</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Store QVD file, using field name</title>
      <link>https://community.qlik.com/t5/QlikView/Store-QVD-file-using-field-name/m-p/100583#M763657</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;try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FOR vCount = 0 to NoOfTables()-1&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LET vTableName = TableName($(vCount));&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; STORE $(vTableName) INTO $(vTableName).qvd (qvd);&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;NEXT vCount&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;HTH&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;André Gomes&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2018 16:04:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Store-QVD-file-using-field-name/m-p/100583#M763657</guid>
      <dc:creator>agomes1971</dc:creator>
      <dc:date>2018-08-02T16:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: Store QVD file, using field name</title>
      <link>https://community.qlik.com/t5/QlikView/Store-QVD-file-using-field-name/m-p/100584#M763658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, how would I work that to my example, when I run this it calls the file "table" as thats the table name, but I want the file name to be the data contained within &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;HOSTNAME table?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Really appreciate your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2018 16:12:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Store-QVD-file-using-field-name/m-p/100584#M763658</guid>
      <dc:creator>mattbrain</dc:creator>
      <dc:date>2018-08-02T16:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: Store QVD file, using field name</title>
      <link>https://community.qlik.com/t5/QlikView/Store-QVD-file-using-field-name/m-p/100585#M763659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maybe something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;LOAD 1,2,3,4,[HOSTNAME]&lt;/P&gt;&lt;P&gt;from yoursource;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vHostName = peek([HOSTNAME],0);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;YourData:&lt;/P&gt;&lt;P&gt;LOAD * from yoursource;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STORE YourData into vHostName.qvd (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;André Gomes&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2018 16:22:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Store-QVD-file-using-field-name/m-p/100585#M763659</guid>
      <dc:creator>agomes1971</dc:creator>
      <dc:date>2018-08-02T16:22:21Z</dc:date>
    </item>
  </channel>
</rss>

