<?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 Problem with &amp;quot;where&amp;quot; command in load script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-quot-where-quot-command-in-load-script/m-p/360162#M1176015</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;Directory;&lt;BR /&gt;SUB DoDir (Root)&lt;BR /&gt;FOR each File in filelist(Root&amp;amp; '\*HOSTTRNAI.TXT')&lt;BR /&gt;LOAD 'HOSTTRNAI.TXT' as source1,&lt;BR /&gt;date(date#(right(filedir(),6),'DDMMYY'),'DD MMM YYYY') as Filename2,&lt;BR /&gt;fields,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Where date(date#(right(filedir(),6),'DDMMYY'),'DD MMM YYYY'&amp;gt;='01 Mar 2012'&lt;/STRONG&gt;&lt;BR /&gt;FROM [$(File)] (txt, codepage is 1252, embedded labels, delimiter is ',', msq);&lt;BR /&gt;NEXT File&lt;BR /&gt;FOR each Dir in dirlist (Root&amp;amp;'\*')&lt;BR /&gt;CALL DoDir(Dir)&lt;BR /&gt;NEXT Dir&lt;BR /&gt;END SUB&lt;BR /&gt;CALL DoDir('S:\Filepath\Mar 12')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;//This takes all the files ending in HOSTTRANAI.txt, in the folder and subfolders of"Mar 12" and grabs the data from them which is then put into a table,.&amp;nbsp; Each file is in a &lt;BR /&gt; //subfolder named&lt;BR /&gt; //DDMMYY as such this is a new field in the table.&amp;nbsp; I would like to be able to use the line in bold to choose which files to grab, but my knowledge of the where command&lt;BR /&gt; i//is lacking.&lt;/PRE&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;BR /&gt; &lt;BR /&gt; Help would be appreciated.&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Mar 2012 14:12:29 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-03-20T14:12:29Z</dc:date>
    <item>
      <title>Problem with "where" command in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-quot-where-quot-command-in-load-script/m-p/360162#M1176015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;Directory;&lt;BR /&gt;SUB DoDir (Root)&lt;BR /&gt;FOR each File in filelist(Root&amp;amp; '\*HOSTTRNAI.TXT')&lt;BR /&gt;LOAD 'HOSTTRNAI.TXT' as source1,&lt;BR /&gt;date(date#(right(filedir(),6),'DDMMYY'),'DD MMM YYYY') as Filename2,&lt;BR /&gt;fields,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Where date(date#(right(filedir(),6),'DDMMYY'),'DD MMM YYYY'&amp;gt;='01 Mar 2012'&lt;/STRONG&gt;&lt;BR /&gt;FROM [$(File)] (txt, codepage is 1252, embedded labels, delimiter is ',', msq);&lt;BR /&gt;NEXT File&lt;BR /&gt;FOR each Dir in dirlist (Root&amp;amp;'\*')&lt;BR /&gt;CALL DoDir(Dir)&lt;BR /&gt;NEXT Dir&lt;BR /&gt;END SUB&lt;BR /&gt;CALL DoDir('S:\Filepath\Mar 12')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;//This takes all the files ending in HOSTTRANAI.txt, in the folder and subfolders of"Mar 12" and grabs the data from them which is then put into a table,.&amp;nbsp; Each file is in a &lt;BR /&gt; //subfolder named&lt;BR /&gt; //DDMMYY as such this is a new field in the table.&amp;nbsp; I would like to be able to use the line in bold to choose which files to grab, but my knowledge of the where command&lt;BR /&gt; i//is lacking.&lt;/PRE&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;BR /&gt; &lt;BR /&gt; Help would be appreciated.&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2012 14:12:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-quot-where-quot-command-in-load-script/m-p/360162#M1176015</guid>
      <dc:creator />
      <dc:date>2012-03-20T14:12:29Z</dc:date>
    </item>
    <item>
      <title>Problem with "where" command in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-quot-where-quot-command-in-load-script/m-p/360163#M1176016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, simonplace&lt;/P&gt;&lt;P&gt;Your script came in plain text. Which one is the line in bold that you want to adjust? &lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2012 19:11:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-quot-where-quot-command-in-load-script/m-p/360163#M1176016</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2012-03-20T19:11:02Z</dc:date>
    </item>
  </channel>
</rss>

