<?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 Delete remaining tables without exact knowledge? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Delete-remaining-tables-without-exact-knowledge/m-p/693301#M250772</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;is there any way in QlikView that I can delete all temp_tables that might remain after one iteration of a subroutine, without knowing their exact name (the name is different depending on the iteration in which they were created)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Oct 2014 13:33:12 GMT</pubDate>
    <dc:creator>datanibbler</dc:creator>
    <dc:date>2014-10-09T13:33:12Z</dc:date>
    <item>
      <title>Delete remaining tables without exact knowledge?</title>
      <link>https://community.qlik.com/t5/QlikView/Delete-remaining-tables-without-exact-knowledge/m-p/693301#M250772</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;is there any way in QlikView that I can delete all temp_tables that might remain after one iteration of a subroutine, without knowing their exact name (the name is different depending on the iteration in which they were created)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Oct 2014 13:33:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Delete-remaining-tables-without-exact-knowledge/m-p/693301#M250772</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2014-10-09T13:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: Delete remaining tables without exact knowledge?</title>
      <link>https://community.qlik.com/t5/QlikView/Delete-remaining-tables-without-exact-knowledge/m-p/693302#M250773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi DataNibbler,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you used a table prefix like 'temp' - you could run a loop through all tables like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for i = 1 to nooftables()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if left(tablename($(i)), 4) = 'temp' then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; drop tables tablename($i));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end if&lt;/P&gt;&lt;P&gt;next&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Oct 2014 13:44:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Delete-remaining-tables-without-exact-knowledge/m-p/693302#M250773</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2014-10-09T13:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: Delete remaining tables without exact knowledge?</title>
      <link>https://community.qlik.com/t5/QlikView/Delete-remaining-tables-without-exact-knowledge/m-p/693303#M250774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that core_statement (the &amp;gt;&amp;gt; DROP TABLES ... &amp;lt;&amp;lt;) does not seem to work. The editor underlines the back_part&lt;/P&gt;&lt;P&gt;( &amp;gt;&amp;gt; tablename($(i)) &amp;lt;&amp;lt;)&lt;/P&gt;&lt;P&gt;and I get an error that the table in the DROP statement was not found&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Oct 2014 14:01:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Delete-remaining-tables-without-exact-knowledge/m-p/693303#M250774</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2014-10-09T14:01:48Z</dc:date>
    </item>
    <item>
      <title>Re: Delete remaining tables without exact knowledge?</title>
      <link>https://community.qlik.com/t5/QlikView/Delete-remaining-tables-without-exact-knowledge/m-p/693304#M250775</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;Actually TableName() is zero based, and you need to go backwards so that TableName(i) is not affected by the earlier run (otherwise it will skip every second table to be deleted):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For zi = NoOfTables() - 1 To 0 Step -1&lt;/P&gt;&lt;P&gt;&amp;nbsp; Let vTable = TableName(zi);&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; If WildMatch(vTable, 'temp*') Then&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DROP Table $(vTable);&lt;/P&gt;&lt;P&gt;&amp;nbsp; End If&lt;/P&gt;&lt;P&gt;Next&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>Thu, 09 Oct 2014 14:02:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Delete-remaining-tables-without-exact-knowledge/m-p/693304#M250775</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2014-10-09T14:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: Delete remaining tables without exact knowledge?</title>
      <link>https://community.qlik.com/t5/QlikView/Delete-remaining-tables-without-exact-knowledge/m-p/693305#M250776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jonathan!&lt;/P&gt;&lt;P&gt;That works.&lt;/P&gt;&lt;P&gt;I need that as an interim - in the long run, maybe I will see where and why these tables are created - actually, every table created in my subroutine is supposed to be deleted, I store away the important info and use it afterwards.&lt;/P&gt;&lt;P&gt;It's just that I have no time to look at everything in detail any more than I have to - I have to concentrate on getting this thing in the air ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Oct 2014 14:13:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Delete-remaining-tables-without-exact-knowledge/m-p/693305#M250776</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2014-10-09T14:13:35Z</dc:date>
    </item>
  </channel>
</rss>

