<?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: How to use QVD file functions in the script? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-use-QVD-file-functions-in-the-script/m-p/929200#M321351</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can use an if else statement in your script and you can use the qvd related functions while doing incremental data load from data source using qvds.&lt;/P&gt;&lt;P&gt;to check if a QVD exist you can use like below:&lt;/P&gt;&lt;P&gt;if(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;QvdCreateTime('path/filename.qvd')&amp;gt;0) then&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;// code to load from QVD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;// code to do regular load&lt;/P&gt;&lt;P&gt;end if;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you have plan to an assessment of multiple QVDs in a folder then you ca run a for loop to loop through multiple QVD names and can get details of the QVD such as no of records, fields, table name etc by using oter QVD related functions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Sep 2015 18:33:20 GMT</pubDate>
    <dc:creator>sudeepkm</dc:creator>
    <dc:date>2015-09-10T18:33:20Z</dc:date>
    <item>
      <title>How to use QVD file functions in the script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-QVD-file-functions-in-the-script/m-p/929199#M321350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone please show me how to execute the QVD file functions in QlikView please? I thought it was as simple as putting a filename inside the function but it doesn't work. Can anyone show me simple illustration of how it works in the script or the front end to get some information out of a QVD file please? &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;QvdCreateTime(filename)&lt;/P&gt;&lt;P&gt;Returns the XML-header time stamp from a QVD file if any (otherwise NULL).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QvdNoOfRecords(filename)&lt;/P&gt;&lt;P&gt;Returns the number of records currently in a QVD file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QvdNoOfFields(filename)&lt;/P&gt;&lt;P&gt;Returns the number of fields in a QVD file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QvdTableName(filename)&lt;/P&gt;&lt;P&gt;Returns the name of the table contained in a QVD file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can these be used at the front end of the application?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2015 18:17:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-QVD-file-functions-in-the-script/m-p/929199#M321350</guid>
      <dc:creator>jblomqvist</dc:creator>
      <dc:date>2015-09-10T18:17:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to use QVD file functions in the script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-QVD-file-functions-in-the-script/m-p/929200#M321351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can use an if else statement in your script and you can use the qvd related functions while doing incremental data load from data source using qvds.&lt;/P&gt;&lt;P&gt;to check if a QVD exist you can use like below:&lt;/P&gt;&lt;P&gt;if(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;QvdCreateTime('path/filename.qvd')&amp;gt;0) then&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;// code to load from QVD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;// code to do regular load&lt;/P&gt;&lt;P&gt;end if;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you have plan to an assessment of multiple QVDs in a folder then you ca run a for loop to loop through multiple QVD names and can get details of the QVD such as no of records, fields, table name etc by using oter QVD related functions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2015 18:33:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-QVD-file-functions-in-the-script/m-p/929200#M321351</guid>
      <dc:creator>sudeepkm</dc:creator>
      <dc:date>2015-09-10T18:33:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to use QVD file functions in the script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-QVD-file-functions-in-the-script/m-p/929201#M321352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;//Create a QVD from Inline Data&lt;/P&gt;&lt;P&gt;QVD_Data:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; F1, F2, F3, F4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; a, 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; b, 2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; c, , X&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;Store QVD_Data into QVD_Data.qvd (qvd);&lt;/P&gt;&lt;P&gt;Drop Table QVD_Data;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Create Variable&lt;/P&gt;&lt;P&gt;let CT = QvdCreateTime('QVD_Data.qvd');&lt;/P&gt;&lt;P&gt;let NoR = QvdNoOfRecords('QVD_Data.qvd');&lt;/P&gt;&lt;P&gt;let NoF = QvdNoOfFields('QVD_Data.qvd');&lt;/P&gt;&lt;P&gt;let TN = QvdTableName('QVD_Data.qvd');&lt;/P&gt;&lt;P&gt;let FN = QvdFieldName( 'QVD_Data.qvd', 1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Load QVD as XML for more Metadata&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QvdFieldHeader:&lt;/P&gt;&lt;P&gt;LOAD FieldName,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; BitOffset,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; BitWidth,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Bias,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; NoOfSymbols,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Offset,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Length,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [NumberFormat/Type] as Type,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [NumberFormat/nDec] as nDec,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [NumberFormat/UseThou] as UseThou,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; %Key_QvdTableHeader_B94FCCAC68ED3E20&amp;nbsp;&amp;nbsp;&amp;nbsp; // Key to parent table: QvdTableHeader&lt;/P&gt;&lt;P&gt;FROM QVD_Data.qvd (XmlSimple, Table is [QvdTableHeader/Fields/QvdFieldHeader]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LineageInfo:&lt;/P&gt;&lt;P&gt;LOAD Discriminator,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; %Key_QvdTableHeader_B94FCCAC68ED3E20&amp;nbsp;&amp;nbsp;&amp;nbsp; // Key to parent table: QvdTableHeader&lt;/P&gt;&lt;P&gt;FROM QVD_Data.qvd (XmlSimple, Table is [QvdTableHeader/Lineage/LineageInfo]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QvdTableHeader:&lt;/P&gt;&lt;P&gt;LOAD QvBuildNo,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CreatorDoc,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CreateUtcTime,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SourceFileSize,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TableName,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RecordByteSize,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; NoOfRecords,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Offset,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Length,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; %Key_QvdTableHeader_B94FCCAC68ED3E20&amp;nbsp;&amp;nbsp;&amp;nbsp; // Key for this table: QvdTableHeader&lt;/P&gt;&lt;P&gt;FROM QVD_Data.qvd (XmlSimple, Table is [QvdTableHeader]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Load QVD-Data &lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;LOAD F1, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; F2, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; F3, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; F4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //You can use Filefunctions like the QVDFileFunktion also outside a load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,filename()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,filetime()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,filesize()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,filepath()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,fileextension()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,filedir()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,filebasename()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;QVD_Data.qvd&lt;/P&gt;&lt;P&gt;(qvd);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2015 18:40:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-QVD-file-functions-in-the-script/m-p/929201#M321352</guid>
      <dc:creator>jonasheisterkam</dc:creator>
      <dc:date>2015-09-10T18:40:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to use QVD file functions in the script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-QVD-file-functions-in-the-script/m-p/929202#M321353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Jonas I think it identified where I was going wrong &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2015 19:59:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-QVD-file-functions-in-the-script/m-p/929202#M321353</guid>
      <dc:creator>jblomqvist</dc:creator>
      <dc:date>2015-09-10T19:59:09Z</dc:date>
    </item>
  </channel>
</rss>

