<?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 May i know how to make use of Loop command and load 100 raw data set ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/May-i-know-how-to-make-use-of-Loop-command-and-load-100-raw-data/m-p/1290385#M623127</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 100 company raw data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each of the company i need to load the below script :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ARSummary:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD left(FileBaseName(), 4) AS Report5_pay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; 'company_1' as SOURCE,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // This will help to filter company_1 to company_100&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; @1:9T as [cust_id],&lt;/P&gt;&lt;P&gt;&amp;nbsp; @10:38T as [company_pay],&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(right(@81:99T,1)='-', '-' &amp;amp; left(@81:99T, len(@81:99T)-1),@81:99T) as curren&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FROM $(vRAWPath)$(vFile1) (ansi, fix, no labels, header is 0, record is line);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // File1 refer to company_1 raw data till file100 refer to company_100&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of i need to repear write the script 100 time. May i know how to make use of Loop command and load 100 raw data set ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will make maintenance easy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope some one can advise me how to do it ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 08 Jan 2017 12:33:56 GMT</pubDate>
    <dc:creator>paulyeo11</dc:creator>
    <dc:date>2017-01-08T12:33:56Z</dc:date>
    <item>
      <title>May i know how to make use of Loop command and load 100 raw data set ?</title>
      <link>https://community.qlik.com/t5/QlikView/May-i-know-how-to-make-use-of-Loop-command-and-load-100-raw-data/m-p/1290385#M623127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 100 company raw data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each of the company i need to load the below script :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ARSummary:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD left(FileBaseName(), 4) AS Report5_pay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; 'company_1' as SOURCE,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // This will help to filter company_1 to company_100&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; @1:9T as [cust_id],&lt;/P&gt;&lt;P&gt;&amp;nbsp; @10:38T as [company_pay],&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(right(@81:99T,1)='-', '-' &amp;amp; left(@81:99T, len(@81:99T)-1),@81:99T) as curren&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FROM $(vRAWPath)$(vFile1) (ansi, fix, no labels, header is 0, record is line);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // File1 refer to company_1 raw data till file100 refer to company_100&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of i need to repear write the script 100 time. May i know how to make use of Loop command and load 100 raw data set ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will make maintenance easy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope some one can advise me how to do it ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Jan 2017 12:33:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/May-i-know-how-to-make-use-of-Loop-command-and-load-100-raw-data/m-p/1290385#M623127</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2017-01-08T12:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: May i know how to make use of Loop command and load 100 raw data set ?</title>
      <link>https://community.qlik.com/t5/QlikView/May-i-know-how-to-make-use-of-Loop-command-and-load-100-raw-data/m-p/1290386#M623128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My Qvw &amp;amp; Raw data&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Jan 2017 12:35:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/May-i-know-how-to-make-use-of-Loop-command-and-load-100-raw-data/m-p/1290386#M623128</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2017-01-08T12:35:01Z</dc:date>
    </item>
    <item>
      <title>Re: May i know how to make use of Loop command and load 100 raw data set ?</title>
      <link>https://community.qlik.com/t5/QlikView/May-i-know-how-to-make-use-of-Loop-command-and-load-100-raw-data/m-p/1290387#M623129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Take a look here by the for- respectively for each loop: &lt;A href="https://community.qlik.com/qlik-blogpost/3274"&gt;Loops in the Script&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Jan 2017 15:55:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/May-i-know-how-to-make-use-of-Loop-command-and-load-100-raw-data/m-p/1290387#M623129</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-01-08T15:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: May i know how to make use of Loop command and load 100 raw data set ?</title>
      <link>https://community.qlik.com/t5/QlikView/May-i-know-how-to-make-use-of-Loop-command-and-load-100-raw-data/m-p/1290388#M623130</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;Thank you for the link. I will need to study .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul Yeo&lt;/P&gt;&lt;P&gt;DIrector&lt;/P&gt;&lt;P&gt;TDS Technology (S) P/L&lt;/P&gt;&lt;P&gt;Whatsapp +659:261804&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Jan 2017 17:19:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/May-i-know-how-to-make-use-of-Loop-command-and-load-100-raw-data/m-p/1290388#M623130</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2017-01-08T17:19:16Z</dc:date>
    </item>
    <item>
      <title>Re: May i know how to make use of Loop command and load 100 raw data set ?</title>
      <link>https://community.qlik.com/t5/QlikView/May-i-know-how-to-make-use-of-Loop-command-and-load-100-raw-data/m-p/1290389#M623131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would use something like the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For each vFileName in FileList('$(vRAWPath)\*.txt')&lt;/P&gt;&lt;P&gt;ARSummary:&lt;/P&gt;&lt;P&gt;LOAD left(FileBaseName(), 4) AS Report5_pay,&lt;/P&gt;&lt;P&gt;&amp;nbsp; FileBaseName() as SOURCE,&lt;/P&gt;&lt;P&gt;&amp;nbsp; @1:9T as [cust_id],&lt;/P&gt;&lt;P&gt;&amp;nbsp; @10:38T as [company_pay],&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(right(@81:99T,1)='-', '-' &amp;amp; left(@81:99T, len(@81:99T)-1),@81:99T) as curren&lt;/P&gt;&lt;P&gt;FROM "$(vFileName)" (ansi, fix, no labels, header is 0, record is line);&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Next vFileName&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2017 07:16:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/May-i-know-how-to-make-use-of-Loop-command-and-load-100-raw-data/m-p/1290389#M623131</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2017-01-10T07:16:50Z</dc:date>
    </item>
    <item>
      <title>Re: May i know how to make use of Loop command and load 100 raw data set ?</title>
      <link>https://community.qlik.com/t5/QlikView/May-i-know-how-to-make-use-of-Loop-command-and-load-100-raw-data/m-p/1290390#M623132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi HIC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thank for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did try , and i notice that below feild does not load into QV. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; FileBaseName() as SOURCE,&lt;/P&gt;&lt;P&gt;&amp;nbsp; @1:9T as [cust_id],&lt;/P&gt;&lt;P&gt;&amp;nbsp; @10:38T as [company_pay],&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May i know where go wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2017 07:28:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/May-i-know-how-to-make-use-of-Loop-command-and-load-100-raw-data/m-p/1290390#M623132</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2017-01-10T07:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: May i know how to make use of Loop command and load 100 raw data set ?</title>
      <link>https://community.qlik.com/t5/QlikView/May-i-know-how-to-make-use-of-Loop-command-and-load-100-raw-data/m-p/1290391#M623133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi HIC &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;work fine now :-&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/1191368"&gt;Henric Cronström give me a script after reload it does not create the table.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thank. you help me move on, Otherwise i will struck there ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2017 11:35:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/May-i-know-how-to-make-use-of-Loop-command-and-load-100-raw-data/m-p/1290391#M623133</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2017-01-11T11:35:31Z</dc:date>
    </item>
  </channel>
</rss>

