<?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: Referencing a include that contains a sub in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Referencing-a-include-that-contains-a-sub/m-p/562963#M693602</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for you reply Marcus. I Couldnt find a proper solution to this one I think. I solved it by just referencing the .qvs with an include (neglecting the Sub Statement): //SUB DB_CONNECT(ENVIRONMENT, DB) $(Include=D:\QVStorage\BI_DEV\COMMON\DB\DB_Connect.qvs); //END SUB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Aug 2013 08:01:30 GMT</pubDate>
    <dc:creator>pauljohansson</dc:creator>
    <dc:date>2013-08-30T08:01:30Z</dc:date>
    <item>
      <title>Referencing a include that contains a sub</title>
      <link>https://community.qlik.com/t5/QlikView/Referencing-a-include-that-contains-a-sub/m-p/562961#M693600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I reference a .qvs(func_db_connect.qvs) from my script like this:&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$(Include=..\common\func_db_connect.qvs);&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This .qvs(func_db_connect.qvs) is a sub that in turn reference another .qvs (DB_Connect.qvs)&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUB DB_CONNECT(ENVIRONMENT, DB)&lt;/P&gt;&lt;P&gt; $(Include=D:\QVStorage\BI_DEV\COMMON\DB\DB_Connect.qvs); &lt;/P&gt;&lt;P&gt;END SUB &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DB_Connect.qvs is just a connection string. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i take the code in DB_Connect and use it directly in the script - there is no problem. But when I call it as above, I dont manage to get a connection.&amp;nbsp; Anyone have any idea what the reason could be? Do i need to include func_db_connect.qvs in some different way since it containts parameters and since its a sub??&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas are welcome,&amp;nbsp; &lt;/P&gt;&lt;P&gt;Thanks in advance, &lt;/P&gt;&lt;P&gt; br Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Aug 2013 09:47:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Referencing-a-include-that-contains-a-sub/m-p/562961#M693600</guid>
      <dc:creator>pauljohansson</dc:creator>
      <dc:date>2013-08-07T09:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: Referencing a include that contains a sub</title>
      <link>https://community.qlik.com/t5/QlikView/Referencing-a-include-that-contains-a-sub/m-p/562962#M693601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you sure that the path is correct and the qv-user has appropriate access rights? What showed the debugger - for each include variable will used a own debugger-tab and the log-file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Aug 2013 10:00:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Referencing-a-include-that-contains-a-sub/m-p/562962#M693601</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2013-08-07T10:00:56Z</dc:date>
    </item>
    <item>
      <title>Re: Referencing a include that contains a sub</title>
      <link>https://community.qlik.com/t5/QlikView/Referencing-a-include-that-contains-a-sub/m-p/562963#M693602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for you reply Marcus. I Couldnt find a proper solution to this one I think. I solved it by just referencing the .qvs with an include (neglecting the Sub Statement): //SUB DB_CONNECT(ENVIRONMENT, DB) $(Include=D:\QVStorage\BI_DEV\COMMON\DB\DB_Connect.qvs); //END SUB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2013 08:01:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Referencing-a-include-that-contains-a-sub/m-p/562963#M693602</guid>
      <dc:creator>pauljohansson</dc:creator>
      <dc:date>2013-08-30T08:01:30Z</dc:date>
    </item>
  </channel>
</rss>

