<?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: Can we use call function within a subroutine to call another subroutine?? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Can-we-use-call-function-within-a-subroutine-to-call-another/m-p/568139#M683618</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved. Here it is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//1st subroutine&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub createanddrop (vTableName)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Store $(vTableName) into [$(vTableName).qvd];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Table $(vTableName);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// 2nd subroutine&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUB pop&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOR&amp;nbsp; i=1 to NoOfTables() -1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vTable=TableName($(i) -1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL createanddrop(vTable);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NEXT i&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END SUB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// CALL&lt;/P&gt;&lt;P&gt;CALL pop;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Feb 2014 11:09:12 GMT</pubDate>
    <dc:creator>luis_pimentel</dc:creator>
    <dc:date>2014-02-11T11:09:12Z</dc:date>
    <item>
      <title>Can we use call function within a subroutine to call another subroutine??</title>
      <link>https://community.qlik.com/t5/QlikView/Can-we-use-call-function-within-a-subroutine-to-call-another/m-p/568132#M683611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;//1st subroutine&lt;/P&gt;&lt;P&gt;Sub &lt;STRONG&gt;createanddrop &lt;/STRONG&gt;(vTableName)&lt;/P&gt;&lt;P&gt;Store $(vTableName) into [$(vTableName).qvd];&lt;/P&gt;&lt;P&gt;Drop Table [$(vTableName)];&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// 2nd subroutine&lt;/P&gt;&lt;P&gt;sub &lt;STRONG&gt;pop&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;FOR&amp;nbsp; i=1 to NoOfTables();&lt;/P&gt;&lt;P&gt;LET vTable=TableName($(i) -1);&lt;/P&gt;&lt;P&gt;CALL createanddrop($(vTable));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NEXT i&lt;/P&gt;&lt;P&gt;END SUB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Main call to subroutine&lt;/P&gt;&lt;P&gt;Call &lt;STRONG&gt;pop&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my code....I want to use call within a subroutine, so that I can pass parameter to another subroutine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Feb 2014 10:39:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-we-use-call-function-within-a-subroutine-to-call-another/m-p/568132#M683611</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-02-11T10:39:47Z</dc:date>
    </item>
    <item>
      <title>Re: Can we use call function within a subroutine to call another subroutine??</title>
      <link>https://community.qlik.com/t5/QlikView/Can-we-use-call-function-within-a-subroutine-to-call-another/m-p/568133#M683612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It should work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Feb 2014 10:50:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-we-use-call-function-within-a-subroutine-to-call-another/m-p/568133#M683612</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2014-02-11T10:50:52Z</dc:date>
    </item>
    <item>
      <title>Re: Can we use call function within a subroutine to call another subroutine??</title>
      <link>https://community.qlik.com/t5/QlikView/Can-we-use-call-function-within-a-subroutine-to-call-another/m-p/568134#M683613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think your code its fine. It should work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Feb 2014 10:52:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-we-use-call-function-within-a-subroutine-to-call-another/m-p/568134#M683613</guid>
      <dc:creator>luis_pimentel</dc:creator>
      <dc:date>2014-02-11T10:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: Can we use call function within a subroutine to call another subroutine??</title>
      <link>https://community.qlik.com/t5/QlikView/Can-we-use-call-function-within-a-subroutine-to-call-another/m-p/568135#M683614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Plz go through my code....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Feb 2014 10:53:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-we-use-call-function-within-a-subroutine-to-call-another/m-p/568135#M683614</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-02-11T10:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: Can we use call function within a subroutine to call another subroutine??</title>
      <link>https://community.qlik.com/t5/QlikView/Can-we-use-call-function-within-a-subroutine-to-call-another/m-p/568136#M683615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;its not working.......I am not able to bring my table name to 1st subroutine&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Feb 2014 10:54:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-we-use-call-function-within-a-subroutine-to-call-another/m-p/568136#M683615</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-02-11T10:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: Can we use call function within a subroutine to call another subroutine??</title>
      <link>https://community.qlik.com/t5/QlikView/Can-we-use-call-function-within-a-subroutine-to-call-another/m-p/568137#M683616</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&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;CALL createanddrop(vTable);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;or&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;CALL createanddrop('$(vTable)');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;HTH&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Jonathan&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Feb 2014 10:58:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-we-use-call-function-within-a-subroutine-to-call-another/m-p/568137#M683616</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2014-02-11T10:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: Can we use call function within a subroutine to call another subroutine??</title>
      <link>https://community.qlik.com/t5/QlikView/Can-we-use-call-function-within-a-subroutine-to-call-another/m-p/568138#M683617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would also modify line 2&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Store [$(vTableName)] into [$(vTableName).qvd] (qvd);&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Feb 2014 10:59:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-we-use-call-function-within-a-subroutine-to-call-another/m-p/568138#M683617</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2014-02-11T10:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: Can we use call function within a subroutine to call another subroutine??</title>
      <link>https://community.qlik.com/t5/QlikView/Can-we-use-call-function-within-a-subroutine-to-call-another/m-p/568139#M683618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved. Here it is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//1st subroutine&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub createanddrop (vTableName)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Store $(vTableName) into [$(vTableName).qvd];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Table $(vTableName);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// 2nd subroutine&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUB pop&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOR&amp;nbsp; i=1 to NoOfTables() -1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vTable=TableName($(i) -1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL createanddrop(vTable);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NEXT i&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END SUB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// CALL&lt;/P&gt;&lt;P&gt;CALL pop;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Feb 2014 11:09:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-we-use-call-function-within-a-subroutine-to-call-another/m-p/568139#M683618</guid>
      <dc:creator>luis_pimentel</dc:creator>
      <dc:date>2014-02-11T11:09:12Z</dc:date>
    </item>
    <item>
      <title>Re: Can we use call function within a subroutine to call another subroutine??</title>
      <link>https://community.qlik.com/t5/QlikView/Can-we-use-call-function-within-a-subroutine-to-call-another/m-p/568140#M683619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use&lt;/P&gt;&lt;P&gt;FOR&amp;nbsp; i=1 to NoOfTables() -1;&lt;/P&gt;&lt;P&gt;instead of&lt;/P&gt;&lt;P&gt;FOR&amp;nbsp; i=1 to NoOfTables() ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AND&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL createanddrop(vTable);&lt;/P&gt;&lt;P&gt;instead of&lt;/P&gt;&lt;P&gt;CALL createanddrop($(vTable));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Luis.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Feb 2014 11:10:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-we-use-call-function-within-a-subroutine-to-call-another/m-p/568140#M683619</guid>
      <dc:creator>luis_pimentel</dc:creator>
      <dc:date>2014-02-11T11:10:16Z</dc:date>
    </item>
    <item>
      <title>Re: Can we use call function within a subroutine to call another subroutine??</title>
      <link>https://community.qlik.com/t5/QlikView/Can-we-use-call-function-within-a-subroutine-to-call-another/m-p/568141#M683620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure it will work&lt;/P&gt;&lt;P&gt;If you delete a table, what will be the next time the result of TableName (counter) when you increment your counter. I think you will skip some tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Certainly, you have to get your table to export and delete through a simple TableName(0). And do a loop as you did (certainly by storing NoOfTable into a variable)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fabrice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Feb 2014 11:28:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-we-use-call-function-within-a-subroutine-to-call-another/m-p/568141#M683620</guid>
      <dc:creator />
      <dc:date>2014-02-11T11:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: Can we use call function within a subroutine to call another subroutine??</title>
      <link>https://community.qlik.com/t5/QlikView/Can-we-use-call-function-within-a-subroutine-to-call-another/m-p/568142#M683621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can look at my code...I am using &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;CALL createanddrop('$(vTable)');......Still not working..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Could You plz check out the flow of execution in this code....Bcoz dis is the first time I am using nested subroutine...I am not sure, whether It is correct.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;First call is made to pop subroutine...then again inside pop another&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;subroutine &lt;/SPAN&gt;createanddrop is being called....So plz verify from ur side....It is correct or not...&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Feb 2014 11:54:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-we-use-call-function-within-a-subroutine-to-call-another/m-p/568142#M683621</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-02-11T11:54:10Z</dc:date>
    </item>
    <item>
      <title>Re: Can we use call function within a subroutine to call another subroutine??</title>
      <link>https://community.qlik.com/t5/QlikView/Can-we-use-call-function-within-a-subroutine-to-call-another/m-p/568143#M683622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Luis for ur reply...Everything&amp;nbsp; working fine, but my 2nd table is not getting drop..&lt;/P&gt;&lt;P&gt;Emp1:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; EmpName, Salary&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ram, 4587&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Shyam, 1500&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; John, 5000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; James, 2500&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Jim, 1000&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Emp2:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; EmpId, Office&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, UAE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, Ind&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, Uk&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5, Us&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4, Pune&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Emp3:&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; EId, EOffice&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, UAE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, Ind&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, Uk&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5, Us&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4, Pune&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Feb 2014 13:15:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-we-use-call-function-within-a-subroutine-to-call-another/m-p/568143#M683622</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-02-11T13:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: Can we use call function within a subroutine to call another subroutine??</title>
      <link>https://community.qlik.com/t5/QlikView/Can-we-use-call-function-within-a-subroutine-to-call-another/m-p/568144#M683623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fabrice is correct. Always work from the bottom when dropping tables in a loop:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub pop&lt;/P&gt;&lt;P&gt;LET vTableCount = NoOfTables();&lt;/P&gt;&lt;P&gt;FOR&amp;nbsp; i=0 to vTableCount - 1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LET vTable=TableName(0);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CALL createanddrop('$(vTable)');&lt;/P&gt;&lt;P&gt;NEXT i&lt;/P&gt;&lt;P&gt;END SUB&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, 11 Feb 2014 13:22:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-we-use-call-function-within-a-subroutine-to-call-another/m-p/568144#M683623</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2014-02-11T13:22:54Z</dc:date>
    </item>
    <item>
      <title>Re: Can we use call function within a subroutine to call another subroutine??</title>
      <link>https://community.qlik.com/t5/QlikView/Can-we-use-call-function-within-a-subroutine-to-call-another/m-p/568145#M683624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please read this..............&lt;/P&gt;&lt;P&gt;I really appreciate efforts of everyone......After dealing with the code I made some changes and now I am using same function in single subroutine....This is my code...........////Single subroutine//////////&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub pop&lt;/P&gt;&lt;P&gt;LET vTableCount = NoOfTables();&lt;/P&gt;&lt;P&gt;FOR&amp;nbsp; i=0 to vTableCount - 1;&lt;/P&gt;&lt;P&gt;LET vTable=TableName(0);&lt;/P&gt;&lt;P&gt;Store $(vTable) into [$(vTable).qvd];&lt;/P&gt;&lt;P&gt;Drop Table [$(vTable)];&lt;/P&gt;&lt;P&gt;NEXT i&lt;/P&gt;&lt;P&gt;END SUB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call pop&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I am having two different code with same functionality.....So my question is Which one is Optimized and which one will you prefer???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//1st subroutine&lt;/P&gt;&lt;P&gt;Sub createanddrop (vTableName)&lt;/P&gt;&lt;P&gt;Store $(vTableName) into [$(vTableName).qvd];&lt;/P&gt;&lt;P&gt;Drop Table [$(vTableName)];&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// 2nd subroutine&lt;/P&gt;&lt;P&gt;sub pop&lt;/P&gt;&lt;P&gt;LET vTableCount = NoOfTables();&lt;/P&gt;&lt;P&gt;FOR&amp;nbsp; i=0 to vTableCount - 1;&lt;/P&gt;&lt;P&gt;LET vTable=TableName(0);&lt;/P&gt;&lt;P&gt;CALL createanddrop('$(vTable)');&lt;/P&gt;&lt;P&gt;NEXT i&lt;/P&gt;&lt;P&gt;END SUB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call pop&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2014 05:50:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-we-use-call-function-within-a-subroutine-to-call-another/m-p/568145#M683624</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-02-12T05:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: Can we use call function within a subroutine to call another subroutine??</title>
      <link>https://community.qlik.com/t5/QlikView/Can-we-use-call-function-within-a-subroutine-to-call-another/m-p/568146#M683625</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 doubt you will see any performance difference as the time consuming operations are the same, but always test to confirm the assumption. If you can't see a difference in testing, then I suggest that you use the simpler script.&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>Wed, 12 Feb 2014 06:21:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-we-use-call-function-within-a-subroutine-to-call-another/m-p/568146#M683625</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2014-02-12T06:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: Can we use call function within a subroutine to call another subroutine??</title>
      <link>https://community.qlik.com/t5/QlikView/Can-we-use-call-function-within-a-subroutine-to-call-another/m-p/568147#M683626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Jonathan,&lt;/P&gt;&lt;P&gt;I just reloaded same table using both functions one by one......I found something unexpected result&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="nested call.png" class="jive-image" src="/legacyfs/online/52994_nested call.png" /&gt;&lt;/P&gt;&lt;P&gt;In 1st case, i.e, nested call , It is taking 31 sec&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="single subroutine.png" class="jive-image" src="/legacyfs/online/52995_single subroutine.png" /&gt;&lt;/P&gt;&lt;P&gt;In 2nd case, i.e, Single subroutine, It is taking 37 sec..&lt;/P&gt;&lt;P&gt;It is completely opposite of my expectation...I was thinking nested call will take more time but I was wrong...Dont know how&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2014 06:46:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-we-use-call-function-within-a-subroutine-to-call-another/m-p/568147#M683626</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-02-12T06:46:31Z</dc:date>
    </item>
  </channel>
</rss>

