<?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: Using a LOOP to load multiple .dbf files in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-a-LOOP-to-load-multiple-dbf-files/m-p/1013781#M343796</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A SQL SELECT * does not read from multiple database files. It pulls data from an active database connection. A single one at any moment. To read from multiple databases, you need to redirect your connection from the previous to the next database before trying to read from it. Put your CONNECT statement in the LOOP body, as Oleg already pointed out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If we are missing the point, please do provide some more details about what exactly doesn't work. Do you get any error messages? What does your current script look like?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, and a happy New Year to everone.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 02 Jan 2016 11:52:13 GMT</pubDate>
    <dc:creator>Peter_Cammaert</dc:creator>
    <dc:date>2016-01-02T11:52:13Z</dc:date>
    <item>
      <title>Using a LOOP to load multiple .dbf files</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-LOOP-to-load-multiple-dbf-files/m-p/1013776#M343791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi - I'm new to this, but have been able to load multiple Excel files using a LOOP, and this works well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, when I try to apply the same format of loop to using 'SQL SELECT *' from multiple .dbf files, I just can't get it to work.&amp;nbsp; All files are in the same directory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any advice would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steven&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jan 2016 14:27:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-LOOP-to-load-multiple-dbf-files/m-p/1013776#M343791</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-01T14:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: Using a LOOP to load multiple .dbf files</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-LOOP-to-load-multiple-dbf-files/m-p/1013777#M343792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have an ODBC driver ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jan 2016 19:43:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-LOOP-to-load-multiple-dbf-files/m-p/1013777#M343792</guid>
      <dc:creator>afurtado</dc:creator>
      <dc:date>2016-01-01T19:43:24Z</dc:date>
    </item>
    <item>
      <title>Re: Using a LOOP to load multiple .dbf files</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-LOOP-to-load-multiple-dbf-files/m-p/1013778#M343793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In a nutshell, you need to loop through the file names in the folder and then use the loop variable (File name) within your CONNECT commands. Once you connect to the desired dbf file, you can use the same SELECT statement to load the data from that database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Oleg Troyansky&lt;/P&gt;&lt;P&gt;Take your Qlik Skills to the next level at the &lt;A href="http://masterssummit.com/"&gt;Masters Summit for Qlik&lt;/A&gt; - now with new and redesigned materials!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jan 2016 22:10:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-LOOP-to-load-multiple-dbf-files/m-p/1013778#M343793</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2016-01-01T22:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: Using a LOOP to load multiple .dbf files</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-LOOP-to-load-multiple-dbf-files/m-p/1013779#M343794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes - thanks - see following.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Jan 2016 11:14:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-LOOP-to-load-multiple-dbf-files/m-p/1013779#M343794</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-02T11:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: Using a LOOP to load multiple .dbf files</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-LOOP-to-load-multiple-dbf-files/m-p/1013780#M343795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many thanks - I think that's what I'm trying with this script, but get the below error message:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;****&lt;/P&gt;&lt;P&gt;&lt;EM&gt;DIRECTORY C:\USERS\STEVEN\DOCUMENTS\QLIK\QLIKVIEW DEMO\FARSDBF;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FOR Each vFile in FileList ('*.dbf');&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ODBC CONNECT32 TO FARS;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;SQL SELECT *&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM $(vFile);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Next vFile;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;****&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL##f - SqlState: 37000, ErrorCode: 4294963790, ErrorMsg: [Microsoft][ODBC dBase Driver] Syntax error in FROM clause.&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;FROM C:\USERS\STEVEN\DOCUMENTS\QLIK\QLIKVIEW DEMO\FARSDBF\acc_1975.dbf&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again......&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Jan 2016 11:17:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-LOOP-to-load-multiple-dbf-files/m-p/1013780#M343795</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-02T11:17:21Z</dc:date>
    </item>
    <item>
      <title>Re: Using a LOOP to load multiple .dbf files</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-LOOP-to-load-multiple-dbf-files/m-p/1013781#M343796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A SQL SELECT * does not read from multiple database files. It pulls data from an active database connection. A single one at any moment. To read from multiple databases, you need to redirect your connection from the previous to the next database before trying to read from it. Put your CONNECT statement in the LOOP body, as Oleg already pointed out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If we are missing the point, please do provide some more details about what exactly doesn't work. Do you get any error messages? What does your current script look like?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, and a happy New Year to everone.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Jan 2016 11:52:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-LOOP-to-load-multiple-dbf-files/m-p/1013781#M343796</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2016-01-02T11:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: Using a LOOP to load multiple .dbf files</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-LOOP-to-load-multiple-dbf-files/m-p/1013782#M343797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Hi - yes, thanks, here's the script and the error message:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;****&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;DIRECTORY C:\USERS\STEVEN\DOCUMENTS\QLIK\QLIKVIEW DEMO\FARSDBF;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;FOR Each vFile in FileList ('*.dbf');&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;ODBC CONNECT32 TO FARS;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;SQL SELECT *&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;FROM $(vFile);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;Next vFile;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;****&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;SQL##f - SqlState: 37000, ErrorCode: 4294963790, ErrorMsg: [Microsoft][ODBC dBase Driver] Syntax error in FROM clause.&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;SQL SELECT *&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;FROM C:\USERS\STEVEN\DOCUMENTS\QLIK\QLIKVIEW DEMO\FARSDBF\acc_1975.dbf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Jan 2016 12:56:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-LOOP-to-load-multiple-dbf-files/m-p/1013782#M343797</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-02T12:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: Using a LOOP to load multiple .dbf files</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-LOOP-to-load-multiple-dbf-files/m-p/1013783#M343798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's hard to guess what's wrong without having the database and the drivers... Here are a couple of pointers:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Try dropping the path and the extension ".dbf" - it looks like DBase ODBC driver assumes the DBF extension automatically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Create the same CONNECT and SELECT statements manually and see how they look like. Then, try to mimic the same structure in your automated loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Try using ODBC command SQLTABLES and then loop through the list of tables instead of the list of files - it might work smoother (assuming the DBase ODBC supports SQLTABLES). You can find advanced examples of using SQLTABLES in my new book &lt;A href="http://www.amazon.com/gp/product/1118949552/ref=as_li_tl?ie=UTF8&amp;amp;camp=1789&amp;amp;creative=9325&amp;amp;creativeASIN=1118949552&amp;amp;linkCode=as2&amp;amp;tag=natursyner0f-20&amp;amp;linkId=IN55M5EPRHLRBWIQ"&gt;QlikView Your Business&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Oleg Troyansky&lt;/P&gt;&lt;P&gt;Take your Qlik Skills to the next level at the &lt;A href="http://masterssummit.com/"&gt;Masters Summit for Qlik&lt;/A&gt; - now with new and redesigned materials!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Jan 2016 16:47:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-LOOP-to-load-multiple-dbf-files/m-p/1013783#M343798</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2016-01-02T16:47:49Z</dc:date>
    </item>
    <item>
      <title>Re: Using a LOOP to load multiple .dbf files</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-LOOP-to-load-multiple-dbf-files/m-p/1013784#M343799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How does your script know that which table it has to read? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Jan 2016 18:26:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-LOOP-to-load-multiple-dbf-files/m-p/1013784#M343799</guid>
      <dc:creator>manishchandra_j</dc:creator>
      <dc:date>2016-01-02T18:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: Using a LOOP to load multiple .dbf files</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-LOOP-to-load-multiple-dbf-files/m-p/1013785#M343800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;dBase files contain &lt;SPAN style="font-size: 13.3333px;"&gt;only one&lt;/SPAN&gt; table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Jan 2016 19:37:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-LOOP-to-load-multiple-dbf-files/m-p/1013785#M343800</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2016-01-02T19:37:21Z</dc:date>
    </item>
    <item>
      <title>Re: Using a LOOP to load multiple .dbf files</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-LOOP-to-load-multiple-dbf-files/m-p/1013786#M343801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;[Edit] I removed my previous remarks. Apparently the ODBC DSN specifies the directory and the FROM clause specifies the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;To get a single CONNECT/SELECT statement set working, you can use a different technique. Go to an empty part of your script and first click the Connect button at the bottom, enter the requested info, and next click the Select button. The script editor will use the open connection to talk to the driver to figure out what can be fetched from this connection. In the dialog that opens next, you'll be able to see and select from the tables and columns that are available.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can repeat this step for a number of tables and then wrap them into a loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW you can specify the from clause like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;FROM "$(vFile)";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to compensate for spaces and other problematic characters in file paths (for example between QLIKVIEW and DEMO).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Jan 2016 20:01:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-LOOP-to-load-multiple-dbf-files/m-p/1013786#M343801</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2016-01-02T20:01:16Z</dc:date>
    </item>
    <item>
      <title>Re: Using a LOOP to load multiple .dbf files</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-LOOP-to-load-multiple-dbf-files/m-p/1013787#M343802</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;some similar code seems to work for me:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14517791723032419" jivemacro_uid="_14517791723032419"&gt;
&lt;P&gt;ODBC CONNECT32 TO DBF_ODBC_DSN;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;FOR Each vDBFfile in filelist('*.dbf')&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Trace Loading File: $(vDBFfile);&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(vDBFfile):&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SQL Select * From $(vDBFfile);&lt;BR /&gt;&lt;BR /&gt;NEXT vDBFfile;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="110431" alt="QlikCommunity_Thread_198126_Pic1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/110431_QlikCommunity_Thread_198126_Pic1.JPG" style="width: 620px; height: 310px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="110433" alt="QlikCommunity_Thread_198126_Pic2.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/110433_QlikCommunity_Thread_198126_Pic2.JPG" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using this System-DSN:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="110435" alt="QlikCommunity_Thread_198126_Pic3.JPG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/110435_QlikCommunity_Thread_198126_Pic3.JPG" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="110436" alt="QlikCommunity_Thread_198126_Pic4.JPG" class="image-4 jive-image" src="https://community.qlik.com/legacyfs/online/110436_QlikCommunity_Thread_198126_Pic4.JPG" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Jan 2016 23:58:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-LOOP-to-load-multiple-dbf-files/m-p/1013787#M343802</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2016-01-02T23:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: Using a LOOP to load multiple .dbf files</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-LOOP-to-load-multiple-dbf-files/m-p/1013788#M343803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Marco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you do one additional test with the same set of DBF files but this time placed in a path that contains spaces (and without quoting $(vDBFfile))? Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Jan 2016 00:05:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-LOOP-to-load-multiple-dbf-files/m-p/1013788#M343803</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2016-01-03T00:05:04Z</dc:date>
    </item>
    <item>
      <title>Re: Using a LOOP to load multiple .dbf files</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-LOOP-to-load-multiple-dbf-files/m-p/1013789#M343804</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;you're right, it's throwing a similar message:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="110437" alt="QlikCommunity_Thread_198126_Pic5.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/110437_QlikCommunity_Thread_198126_Pic5.JPG" style="width: 620px; height: 347px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_1451780550925408 jive_text_macro" jivemacro_uid="_1451780550925408"&gt;
&lt;P&gt;ODBC CONNECT32 TO DBF_ODBC_DSN2;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;FOR Each vDBFfile in filelist('*.dbf')&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Trace Loading File: $(vDBFfile);&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [$(vDBFfile)]:&lt;BR /&gt; SQL Select * From $(vDBFfile);&lt;BR /&gt;&lt;BR /&gt;NEXT vDBFfile;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steven's folder "QLIKVIEW DEMO" might cause the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Jan 2016 00:21:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-LOOP-to-load-multiple-dbf-files/m-p/1013789#M343804</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2016-01-03T00:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: Using a LOOP to load multiple .dbf files</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-LOOP-to-load-multiple-dbf-files/m-p/1013790#M343805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So using double quotes around your variable expansion will probably fix the issue, and Steven's as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Big thanks for doing this test. I was still fighting the ODBC configuration of dBase files. Awful, but simple now that I know how to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Goodnight,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Jan 2016 00:28:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-LOOP-to-load-multiple-dbf-files/m-p/1013790#M343805</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2016-01-03T00:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: Using a LOOP to load multiple .dbf files</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-LOOP-to-load-multiple-dbf-files/m-p/1013791#M343806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you're welcome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Goodnight&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Jan 2016 00:33:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-LOOP-to-load-multiple-dbf-files/m-p/1013791#M343806</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2016-01-03T00:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: Using a LOOP to load multiple .dbf files</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-LOOP-to-load-multiple-dbf-files/m-p/1013792#M343807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oleg, Peter, Marco - many, many thanks for your engagement and support on this.&amp;nbsp; It may reveal the early stage of my learning on this to realsie that the solution to my problem was to change my folder name from 'QLIKVIEW DEMO'&amp;nbsp; to 'QLIKVIEWDEMO' with no space.&amp;nbsp; Having said this, the discussion and the insights you have all provided has taught me much and has significantly advanced my learning.&amp;nbsp; THanks again for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oleg - I just downloaded the Kindle version of your book and I fully plan to work through it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards to all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steven&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Jan 2016 10:11:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-LOOP-to-load-multiple-dbf-files/m-p/1013792#M343807</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-03T10:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: Using a LOOP to load multiple .dbf files</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-LOOP-to-load-multiple-dbf-files/m-p/1013793#M343808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Oleg, Peter, Marco - many, many thanks for your engagement and support on this.&amp;nbsp; It may reveal the early stage of my learning on this to realsie that the solution to my problem was to change my folder name from 'QLIKVIEW DEMO'&amp;nbsp; to 'QLIKVIEWDEMO' with no space.&amp;nbsp; Having said this, the discussion and the insights you have all provided has taught me much and has significantly advanced my learning.&amp;nbsp; THanks again for this.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Oleg - I just downloaded the Kindle version of your book and I fully plan to work through it.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Regards to all,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Steven&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Jan 2016 10:11:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-LOOP-to-load-multiple-dbf-files/m-p/1013793#M343808</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-03T10:11:40Z</dc:date>
    </item>
    <item>
      <title>Re: Using a LOOP to load multiple .dbf files</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-LOOP-to-load-multiple-dbf-files/m-p/1013794#M343809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Oleg, Peter, Marco - many, many thanks for your engagement and support on this.&amp;nbsp; It may reveal the early stage of my learning on this to realsie that the solution to my problem was to change my folder name from 'QLIKVIEW DEMO'&amp;nbsp; to 'QLIKVIEWDEMO' with no space.&amp;nbsp; Having said this, the discussion and the insights you have all provided has taught me much and has significantly advanced my learning.&amp;nbsp; THanks again for this.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Oleg - I just downloaded the Kindle version of your book and I fully plan to work through it.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Regards to all,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Steven&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Jan 2016 10:12:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-LOOP-to-load-multiple-dbf-files/m-p/1013794#M343809</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-03T10:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: Using a LOOP to load multiple .dbf files</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-LOOP-to-load-multiple-dbf-files/m-p/1013795#M343810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well the actual solution is hiding in the fact that you shouldn't actually change your environment to match the behavior of your script. Your script should be able to handle any DBF-file in any location. Imagine that someone in the future changes the DBF location back to a path with spaces that is already commonly accepted in Windows since Win9x?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would suggest to add the double quotes. Makes your document future-proof. Another solution could be to drop the path from the FROM clause altogehter by splitting off the path from the filename before performing the LOAD. But again, a file name may also contain spaces these days, so you'll never be sure that your script won't have to deal with spaces in the FROM clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In any case, good luck and enjoy QlikView and the Qlik Community &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Jan 2016 14:13:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-LOOP-to-load-multiple-dbf-files/m-p/1013795#M343810</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2016-01-03T14:13:00Z</dc:date>
    </item>
  </channel>
</rss>

