<?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 Exists in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Exists/m-p/1195589#M627538</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;I have following data load script with exits command but It does not execute with an error message. pls correct me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let Vdate=Num(Date(Makedate(2015,09,01),'D/M/YYYY'));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;debtors:&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;DATE(FLOOR(TRAN_DAT))AS TRAN_DATE,&lt;/P&gt;&lt;P&gt;DATE(FLOOR(RISK_DAT))AS RISK_DATE&lt;/P&gt;&lt;P&gt;where num(date(TRAN_DAT,'D/M/YYYY'))&amp;gt;=$(Vdate);&lt;/P&gt;&lt;P&gt;sql&lt;/P&gt;&lt;P&gt;select &lt;/P&gt;&lt;P&gt;det_debt_code AS DEBTOR_CODE,&lt;/P&gt;&lt;P&gt;trunc(det_ref_date) as Tran_dat,&lt;/P&gt;&lt;P&gt;trunc(det_risk_date) as Risk_dat,&lt;/P&gt;&lt;P&gt;det_hc_amt as Amount,&lt;/P&gt;&lt;P&gt;det_ref_c as Ref_c,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;det_ref_2 as Ref_no,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;det_txntype as TXN_type&lt;/P&gt;&lt;P&gt; from debtor&lt;/P&gt;&lt;P&gt; where det_txntype='1'&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;load *&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;where Exists(Ref_c);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;sql&lt;/P&gt;&lt;P&gt;select &lt;/P&gt;&lt;P&gt;det_debt_code AS DEBTOR_CODE,&lt;/P&gt;&lt;P&gt;trunc(det_ref_date) as Tran_dat,&lt;/P&gt;&lt;P&gt;trunc(det_risk_date) as Risk_dat,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;det_hc_amt as Amount,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;det_ref_c as Ref_c,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;det_ref_2 as Ref_no,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;det_txntype as TXN_type,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;det_ref_c as Ref_c,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;det_txntype as TXN_type&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; from debtor&lt;/P&gt;&lt;P&gt; where det_txntype&amp;lt;&amp;gt;'1'&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;I want to load data from 2nd script where Ref_c matches with Ref_c of 1st script&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Sep 2016 10:41:15 GMT</pubDate>
    <dc:creator>upaliwije</dc:creator>
    <dc:date>2016-09-30T10:41:15Z</dc:date>
    <item>
      <title>Exists</title>
      <link>https://community.qlik.com/t5/QlikView/Exists/m-p/1195589#M627538</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;I have following data load script with exits command but It does not execute with an error message. pls correct me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let Vdate=Num(Date(Makedate(2015,09,01),'D/M/YYYY'));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;debtors:&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;DATE(FLOOR(TRAN_DAT))AS TRAN_DATE,&lt;/P&gt;&lt;P&gt;DATE(FLOOR(RISK_DAT))AS RISK_DATE&lt;/P&gt;&lt;P&gt;where num(date(TRAN_DAT,'D/M/YYYY'))&amp;gt;=$(Vdate);&lt;/P&gt;&lt;P&gt;sql&lt;/P&gt;&lt;P&gt;select &lt;/P&gt;&lt;P&gt;det_debt_code AS DEBTOR_CODE,&lt;/P&gt;&lt;P&gt;trunc(det_ref_date) as Tran_dat,&lt;/P&gt;&lt;P&gt;trunc(det_risk_date) as Risk_dat,&lt;/P&gt;&lt;P&gt;det_hc_amt as Amount,&lt;/P&gt;&lt;P&gt;det_ref_c as Ref_c,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;det_ref_2 as Ref_no,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;det_txntype as TXN_type&lt;/P&gt;&lt;P&gt; from debtor&lt;/P&gt;&lt;P&gt; where det_txntype='1'&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;load *&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;where Exists(Ref_c);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;sql&lt;/P&gt;&lt;P&gt;select &lt;/P&gt;&lt;P&gt;det_debt_code AS DEBTOR_CODE,&lt;/P&gt;&lt;P&gt;trunc(det_ref_date) as Tran_dat,&lt;/P&gt;&lt;P&gt;trunc(det_risk_date) as Risk_dat,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;det_hc_amt as Amount,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;det_ref_c as Ref_c,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;det_ref_2 as Ref_no,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;det_txntype as TXN_type,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;det_ref_c as Ref_c,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;det_txntype as TXN_type&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; from debtor&lt;/P&gt;&lt;P&gt; where det_txntype&amp;lt;&amp;gt;'1'&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;I want to load data from 2nd script where Ref_c matches with Ref_c of 1st script&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Sep 2016 10:41:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exists/m-p/1195589#M627538</guid>
      <dc:creator>upaliwije</dc:creator>
      <dc:date>2016-09-30T10:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: Exists</title>
      <link>https://community.qlik.com/t5/QlikView/Exists/m-p/1195590#M627539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;QlikView is translating this as the same load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just put a table name before the 2nd load :&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;Final:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;load *&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;where Exists(Ref_c);&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;sql&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;select&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;det_debt_code AS DEBTOR_CODE,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;trunc(det_ref_date) as Tran_dat,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;trunc(det_risk_date) as Risk_dat,&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;det_hc_amt as Amount,&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;det_ref_c as Ref_c,&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;det_ref_2 as Ref_no,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;det_txntype as TXN_type,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;det_ref_c as Ref_c,&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;det_txntype as TXN_type&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;from debtor&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;where det_txntype&amp;lt;&amp;gt;'1'&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&gt;&lt;/P&gt;&lt;P&gt;and drop the 1st table when done.&lt;/P&gt;&lt;P&gt;is Ref_c unique? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Sep 2016 10:45:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exists/m-p/1195590#M627539</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2016-09-30T10:45:20Z</dc:date>
    </item>
    <item>
      <title>Re: Exists</title>
      <link>https://community.qlik.com/t5/QlikView/Exists/m-p/1195591#M627540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Still I get the error massge&amp;nbsp; below&lt;/P&gt;&lt;P&gt;Field not found - &amp;lt;Ref_c&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Sep 2016 10:49:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exists/m-p/1195591#M627540</guid>
      <dc:creator>upaliwije</dc:creator>
      <dc:date>2016-09-30T10:49:45Z</dc:date>
    </item>
    <item>
      <title>Re: Exists</title>
      <link>https://community.qlik.com/t5/QlikView/Exists/m-p/1195592#M627541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;load only the 1st table&lt;/P&gt;&lt;P&gt;and then check field names&lt;/P&gt;&lt;P&gt;Sometimes Oracle changes every field to uppercase so maybe the name is REF_C and not Ref_c&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Sep 2016 10:52:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exists/m-p/1195592#M627541</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2016-09-30T10:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: Exists</title>
      <link>https://community.qlik.com/t5/QlikView/Exists/m-p/1195593#M627542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try Upper case&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-family: inherit; font-style: inherit; font-weight: inherit;"&gt;where Exists(REF_C);&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Sep 2016 10:53:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exists/m-p/1195593#M627542</guid>
      <dc:creator>zhadrakas</dc:creator>
      <dc:date>2016-09-30T10:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: Exists</title>
      <link>https://community.qlik.com/t5/QlikView/Exists/m-p/1195594#M627543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are right&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Sep 2016 10:59:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exists/m-p/1195594#M627543</guid>
      <dc:creator>upaliwije</dc:creator>
      <dc:date>2016-09-30T10:59:35Z</dc:date>
    </item>
  </channel>
</rss>

