<?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 to Read all LOG files from a Directory and Extract the FROM clauses in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-Read-all-LOG-files-from-a-Directory-and-Extract-the-FROM/m-p/646698#M1060355</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't know exactly the result you would obtain, but you can&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;load only the rows you are interested to through the script capabilities&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14122395564031495" jivemacro_uid="_14122395564031495"&gt;
&lt;P&gt;MyTab:&lt;/P&gt;
&lt;P&gt;add LOAD *&lt;/P&gt;
&lt;P&gt;FROM&lt;/P&gt;
&lt;P&gt;*.txt&lt;/P&gt;
&lt;P&gt;(txt, codepage is 1252, delimiter is '\t', msq)&lt;/P&gt;
&lt;P&gt;where Field like '*From*';&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;use regular expressions once all data have been loaded, see&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-4587"&gt;How to use regular expressions&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Oct 2014 08:24:58 GMT</pubDate>
    <dc:creator>Andrea_Ghirardello</dc:creator>
    <dc:date>2014-10-02T08:24:58Z</dc:date>
    <item>
      <title>How to Read all LOG files from a Directory and Extract the FROM clauses</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Read-all-LOG-files-from-a-Directory-and-Extract-the-FROM/m-p/646695#M1060352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to load and read all LOG files from a directory and then extract those lines that have a FROM clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know how could I do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Oct 2014 04:17:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Read-all-LOG-files-from-a-Directory-and-Extract-the-FROM/m-p/646695#M1060352</guid>
      <dc:creator />
      <dc:date>2014-10-02T04:17:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to Read all LOG files from a Directory and Extract the FROM clauses</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Read-all-LOG-files-from-a-Directory-and-Extract-the-FROM/m-p/646696#M1060353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use "File Wizard" to achieve the same.&lt;/P&gt;&lt;P&gt;1. 'Edit Script' ----&amp;gt; 'Table Files'&lt;/P&gt;&lt;P&gt;2. Select the log file you want to query&lt;/P&gt;&lt;P&gt;3. Choose how you want to delimit your data. ' Click Next'&lt;/P&gt;&lt;P&gt;4. Click 'Enable Transformation Step'&lt;/P&gt;&lt;P&gt;5. 'Conditional Delete' under 'Garbage Tab'&lt;/P&gt;&lt;P&gt;You can play around from here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Oct 2014 05:15:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Read-all-LOG-files-from-a-Directory-and-Extract-the-FROM/m-p/646696#M1060353</guid>
      <dc:creator>mjayachandran</dc:creator>
      <dc:date>2014-10-02T05:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to Read all LOG files from a Directory and Extract the FROM clauses</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Read-all-LOG-files-from-a-Directory-and-Extract-the-FROM/m-p/646697#M1060354</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 like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;*.txt&lt;/P&gt;&lt;P&gt;(txt, codepage is 1252, no labels, delimiter is '\t', msq)&lt;/P&gt;&lt;P&gt;where Field&amp;gt;0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;ASHFAQ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Oct 2014 06:28:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Read-all-LOG-files-from-a-Directory-and-Extract-the-FROM/m-p/646697#M1060354</guid>
      <dc:creator>ashfaq_haseeb</dc:creator>
      <dc:date>2014-10-02T06:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to Read all LOG files from a Directory and Extract the FROM clauses</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Read-all-LOG-files-from-a-Directory-and-Extract-the-FROM/m-p/646698#M1060355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't know exactly the result you would obtain, but you can&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;load only the rows you are interested to through the script capabilities&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14122395564031495" jivemacro_uid="_14122395564031495"&gt;
&lt;P&gt;MyTab:&lt;/P&gt;
&lt;P&gt;add LOAD *&lt;/P&gt;
&lt;P&gt;FROM&lt;/P&gt;
&lt;P&gt;*.txt&lt;/P&gt;
&lt;P&gt;(txt, codepage is 1252, delimiter is '\t', msq)&lt;/P&gt;
&lt;P&gt;where Field like '*From*';&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;use regular expressions once all data have been loaded, see&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-4587"&gt;How to use regular expressions&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Oct 2014 08:24:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Read-all-LOG-files-from-a-Directory-and-Extract-the-FROM/m-p/646698#M1060355</guid>
      <dc:creator>Andrea_Ghirardello</dc:creator>
      <dc:date>2014-10-02T08:24:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to Read all LOG files from a Directory and Extract the FROM clauses</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Read-all-LOG-files-from-a-Directory-and-Extract-the-FROM/m-p/646699#M1060356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assuming you want to parse QV document logs, there may be no single method to do this. AFAIK a FROM keyword may be present on a line by itself (standard QV formatting) or it may be followed by a filename and options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you trying to lift the data sources from a document log?&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;. &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Oct 2014 09:50:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Read-all-LOG-files-from-a-Directory-and-Extract-the-FROM/m-p/646699#M1060356</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2014-10-02T09:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to Read all LOG files from a Directory and Extract the FROM clauses</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Read-all-LOG-files-from-a-Directory-and-Extract-the-FROM/m-p/646700#M1060357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I need to extract all the inputs that are used in a QVW...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know a practical way to do it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Oct 2014 12:25:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Read-all-LOG-files-from-a-Directory-and-Extract-the-FROM/m-p/646700#M1060357</guid>
      <dc:creator />
      <dc:date>2014-10-02T12:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to Read all LOG files from a Directory and Extract the FROM clauses</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Read-all-LOG-files-from-a-Directory-and-Extract-the-FROM/m-p/646701#M1060358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, not really. And that's for a very simple reason: QlikView script uses a language with a non-context free grammar, meaning that in order to obtain the meaning of a particular "FROM" you'll have to know the context of this particular FROM. For example, this is a valid script statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET FROM = LOAD;&lt;/P&gt;&lt;P&gt;SET "Other FROM" = LOAD;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FROM :&lt;/P&gt;&lt;P&gt;$(FROM) $(Other FROM), FROM&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;(txt)&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which FROM do you want to select?.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the other hand, if you can be sure that a particular statement format is used for all LOAD statements, then there are possibilities. For example, if the name "FROM" is never used for anything else that the FROM clause, and FROM and source path always appear on the same line, then the log parsing becomes fairly straightforward, even in a QV script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Oct 2014 12:46:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Read-all-LOG-files-from-a-Directory-and-Extract-the-FROM/m-p/646701#M1060358</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2014-10-02T12:46:37Z</dc:date>
    </item>
  </channel>
</rss>

