<?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 Call the SUB only if any new dates exists. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Call-the-SUB-only-if-any-new-dates-exists/m-p/547719#M204589</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are scanning the file system to find out the QVD Name and the QVD Date of the QVD's from a folder. The format the QVD is something like "QVDNAME.YYYY_MM" and "QVDNAME.YYYY_MM_DD".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for each zFormat in 'qvd'&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for each zFile in filelist ('C:\QV\Data' &amp;amp;zExt)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LET zDate= subfield('$(zFile)', '.', 2);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Temp]:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Load '$(zFile)' as QVDNAME, subfield('$(zFile)', '.', 2) as QVDDATE autogenerate 1;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; next zFile&lt;BR /&gt;&amp;nbsp;&amp;nbsp; next zFormat&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also we have seperate QVD which contains the list of QVD's in a folder in the same format as above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(i.e) &lt;BR /&gt;QVDNAME&lt;BR /&gt;-------&lt;/P&gt;&lt;P&gt;QVDNAME_2013_12.qvd&lt;BR /&gt;QVDNAME_2013_11.qvd&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I need is, I want to check whether is there is any dates which exists in the above scan file code but not exists in the above QVD(Which contains the list of QVDNAME which was already there).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there is any new QVD which exits but not there in the above QVD then I need to call one SUB, if not I don't want to call the SUB.&lt;/P&gt;&lt;P&gt;Please help me on this... &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Dec 2013 12:19:32 GMT</pubDate>
    <dc:creator>qlikviewforum</dc:creator>
    <dc:date>2013-12-09T12:19:32Z</dc:date>
    <item>
      <title>Call the SUB only if any new dates exists.</title>
      <link>https://community.qlik.com/t5/QlikView/Call-the-SUB-only-if-any-new-dates-exists/m-p/547719#M204589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are scanning the file system to find out the QVD Name and the QVD Date of the QVD's from a folder. The format the QVD is something like "QVDNAME.YYYY_MM" and "QVDNAME.YYYY_MM_DD".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for each zFormat in 'qvd'&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for each zFile in filelist ('C:\QV\Data' &amp;amp;zExt)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LET zDate= subfield('$(zFile)', '.', 2);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Temp]:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Load '$(zFile)' as QVDNAME, subfield('$(zFile)', '.', 2) as QVDDATE autogenerate 1;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; next zFile&lt;BR /&gt;&amp;nbsp;&amp;nbsp; next zFormat&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also we have seperate QVD which contains the list of QVD's in a folder in the same format as above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(i.e) &lt;BR /&gt;QVDNAME&lt;BR /&gt;-------&lt;/P&gt;&lt;P&gt;QVDNAME_2013_12.qvd&lt;BR /&gt;QVDNAME_2013_11.qvd&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I need is, I want to check whether is there is any dates which exists in the above scan file code but not exists in the above QVD(Which contains the list of QVDNAME which was already there).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there is any new QVD which exits but not there in the above QVD then I need to call one SUB, if not I don't want to call the SUB.&lt;/P&gt;&lt;P&gt;Please help me on this... &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Dec 2013 12:19:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Call-the-SUB-only-if-any-new-dates-exists/m-p/547719#M204589</guid>
      <dc:creator>qlikviewforum</dc:creator>
      <dc:date>2013-12-09T12:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: Call the SUB only if any new dates exists.</title>
      <link>https://community.qlik.com/t5/QlikView/Call-the-SUB-only-if-any-new-dates-exists/m-p/547720#M204590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, as far as my understanding you have 2 tables:&lt;/P&gt;&lt;P&gt;1. QVD Files from Folder A (from scan file code), lets call it Table_A&lt;/P&gt;&lt;P&gt;2. QVD Files from Folder B (from the 2nd QVD list), lets call it Table_B&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you left join Table A to Table B (by QVDDATE) then you can identify which are missing in Table_B&lt;/P&gt;&lt;P&gt;by the null value in that table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BothSources:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; A, B1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; aaa, bbb&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; aa1, bb1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; aa2, bb2&amp;nbsp; &lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left join&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; A, B2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; aaa, bbb&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; aa1, bb1&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;OnlyIn_A:&lt;/P&gt;&lt;P&gt;LOAD * Resident BothSources&lt;/P&gt;&lt;P&gt;Where IsNull(B2);&lt;/P&gt;&lt;P&gt;Drop Table BothSources;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Dec 2013 12:38:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Call-the-SUB-only-if-any-new-dates-exists/m-p/547720#M204590</guid>
      <dc:creator>orital81</dc:creator>
      <dc:date>2013-12-09T12:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: Call the SUB only if any new dates exists.</title>
      <link>https://community.qlik.com/t5/QlikView/Call-the-SUB-only-if-any-new-dates-exists/m-p/547721#M204591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Basically I want to call a subroutine only if any qvd which exists in scan file system code but not there in QVD list(qvd). If not I don't want to call the subroutine. Anyway I check your code and update you on that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Dec 2013 03:41:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Call-the-SUB-only-if-any-new-dates-exists/m-p/547721#M204591</guid>
      <dc:creator>qlikviewforum</dc:creator>
      <dc:date>2013-12-10T03:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: Call the SUB only if any new dates exists.</title>
      <link>https://community.qlik.com/t5/QlikView/Call-the-SUB-only-if-any-new-dates-exists/m-p/547722#M204592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ori,&lt;/P&gt;&lt;P&gt;Hope my requirement is understandable. It is not working! Sorry..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;Any thought from any one on this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Dec 2013 06:46:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Call-the-SUB-only-if-any-new-dates-exists/m-p/547722#M204592</guid>
      <dc:creator>qlikviewforum</dc:creator>
      <dc:date>2013-12-10T06:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: Call the SUB only if any new dates exists.</title>
      <link>https://community.qlik.com/t5/QlikView/Call-the-SUB-only-if-any-new-dates-exists/m-p/547723#M204593</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;To call a sub, but exclude the contents of the QVD list (let's call that filer QvdList.qvd), do the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD QvdName As LoadedQvd&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;From QvdList.qvd (qvd)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;For Each zFile in FileList ('C:\QV\Data\*.qvd')&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If Not Exists(LoadedQvd, SubField(zFile, ''\', -1)) Then&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Call Process(zFile)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Next zFile&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Drop Field LoadedQvd;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Dec 2013 07:39:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Call-the-SUB-only-if-any-new-dates-exists/m-p/547723#M204593</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2013-12-10T07:39:27Z</dc:date>
    </item>
  </channel>
</rss>

