<?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: how can i create an empty table? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/how-can-i-create-an-empty-table/m-p/352920#M130969</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; You have to specify the fieldnames&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Try this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Load * Inline&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Field1,Field2,Field3];&lt;/P&gt;&lt;P&gt;Or&lt;/P&gt;&lt;P&gt;you can go with&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'' as Field1,'' as Field2 AutoGenerate 0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Celambarasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Mar 2012 14:08:43 GMT</pubDate>
    <dc:creator>CELAMBARASAN</dc:creator>
    <dc:date>2012-03-14T14:08:43Z</dc:date>
    <item>
      <title>how can i create an empty table?</title>
      <link>https://community.qlik.com/t5/QlikView/how-can-i-create-an-empty-table/m-p/352919#M130968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;give me a script error: &lt;/P&gt;&lt;P&gt;Error: File .\extdata.cpp, Line 2788&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to create the table first, because i'm looping though a set of data and i want to use CONCATENATE even if the table doesn't exsist;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2012 14:06:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-can-i-create-an-empty-table/m-p/352919#M130968</guid>
      <dc:creator>amien</dc:creator>
      <dc:date>2012-03-14T14:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: how can i create an empty table?</title>
      <link>https://community.qlik.com/t5/QlikView/how-can-i-create-an-empty-table/m-p/352920#M130969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; You have to specify the fieldnames&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Try this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Load * Inline&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Field1,Field2,Field3];&lt;/P&gt;&lt;P&gt;Or&lt;/P&gt;&lt;P&gt;you can go with&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'' as Field1,'' as Field2 AutoGenerate 0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Celambarasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2012 14:08:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-can-i-create-an-empty-table/m-p/352920#M130969</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-03-14T14:08:43Z</dc:date>
    </item>
    <item>
      <title>how can i create an empty table?</title>
      <link>https://community.qlik.com/t5/QlikView/how-can-i-create-an-empty-table/m-p/352921#M130970</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 this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TableName:&lt;/P&gt;&lt;P&gt;Load * Inline&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Field1,Field2,Field3];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2012 14:42:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-can-i-create-an-empty-table/m-p/352921#M130970</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2012-03-14T14:42:56Z</dc:date>
    </item>
    <item>
      <title>how can i create an empty table?</title>
      <link>https://community.qlik.com/t5/QlikView/how-can-i-create-an-empty-table/m-p/352922#M130971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This can't be done without any columns?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2012 21:50:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-can-i-create-an-empty-table/m-p/352922#M130971</guid>
      <dc:creator>amien</dc:creator>
      <dc:date>2012-03-14T21:50:06Z</dc:date>
    </item>
    <item>
      <title>how can i create an empty table?</title>
      <link>https://community.qlik.com/t5/QlikView/how-can-i-create-an-empty-table/m-p/352923#M130972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Its not possible to do without any columns.Can you brief about your issue why you are trying to create empty table without any column?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Celambarasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2012 04:24:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-can-i-create-an-empty-table/m-p/352923#M130972</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-03-15T04:24:47Z</dc:date>
    </item>
    <item>
      <title>how can i create an empty table?</title>
      <link>https://community.qlik.com/t5/QlikView/how-can-i-create-an-empty-table/m-p/352924#M130973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;as mentioned in the openings post .. i have the CONCATENATE load in a SUB. This SUB is called a few times.&lt;/P&gt;&lt;P&gt;The problem is that the first time, the table doesn't exists and concatenate will not work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i created a check that does a countrowno on the table. If that number is 0 then i create an INLINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i could create an inline with 1 column that will exist in the table that is going to be concatenated. but i was wondering if it's possible to create an inline without any columns or rows.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2012 09:40:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-can-i-create-an-empty-table/m-p/352924#M130973</guid>
      <dc:creator>amien</dc:creator>
      <dc:date>2012-03-15T09:40:51Z</dc:date>
    </item>
    <item>
      <title>how can i create an empty table?</title>
      <link>https://community.qlik.com/t5/QlikView/how-can-i-create-an-empty-table/m-p/352925#M130974</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;Without a single column it is not possible to create a table.&amp;nbsp; Not in Qlikview, even it is not possible in any database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, you can try this script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TableName:&lt;/P&gt;&lt;P&gt;Load * Inline&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Field1];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you have a table (TableName) with Field1.&amp;nbsp; Now in SUB you can concatenate your data, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE(TableName)&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *&lt;/P&gt;&lt;P&gt;FROM DataSource;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally, remove the column Field1 in the table TableName by using &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //List all columns except Field1&lt;/P&gt;&lt;P&gt;RESIDENT TableName;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2012 10:00:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-can-i-create-an-empty-table/m-p/352925#M130974</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2012-03-15T10:00:58Z</dc:date>
    </item>
    <item>
      <title>how can i create an empty table?</title>
      <link>https://community.qlik.com/t5/QlikView/how-can-i-create-an-empty-table/m-p/352926#M130975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jagan is correct but an easier way to eliminate Field1 is to use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP FIELD Field1 FROM TableName;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Doing this eliminates the need to reload the data that last time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2012 12:41:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-can-i-create-an-empty-table/m-p/352926#M130975</guid>
      <dc:creator />
      <dc:date>2012-05-11T12:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: how can i create an empty table?</title>
      <link>https://community.qlik.com/t5/QlikView/how-can-i-create-an-empty-table/m-p/352927#M130976</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;If the field names are the same each time you call the Sub, then you can use QVs automatic concatenation. Just make sure you give the LOAD a table name lable (that also must not change) and call the sub as many times as you need. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you do this right, then QV will concatenate the data from all the calls into the table named in your lable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2012 13:42:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-can-i-create-an-empty-table/m-p/352927#M130976</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2012-05-11T13:42:23Z</dc:date>
    </item>
    <item>
      <title>how can i create an empty table?</title>
      <link>https://community.qlik.com/t5/QlikView/how-can-i-create-an-empty-table/m-p/352928#M130977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jonathan's suggestion will work fine unless that first LOAD into the table in the LOOP fails to create the table because of some scripting or data error.&amp;nbsp; I have found that creating the target table with a dummy field prior to entering the LOOP is a better practice to always know you have a table into which you can CONCATENATE and you can explicitly tell Qlikview to CONCATENATE(mytablename) in the LOOP. Then after the LOOP terminates do a DROP FIELD FROM as I noted in an earlier post.&lt;/P&gt;&lt;P&gt;&lt;IMG id="smallDivTip" src="https://community.qlik.com/" style="z-index: 90; border: 0px solid blue; position: absolute; left: 406px; top: 79px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2012 14:50:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-can-i-create-an-empty-table/m-p/352928#M130977</guid>
      <dc:creator />
      <dc:date>2012-05-17T14:50:37Z</dc:date>
    </item>
  </channel>
</rss>

