<?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 Need generic scrip for multiple customers in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Need-generic-scrip-for-multiple-customers/m-p/177685#M45191</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like this:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;MyTable:&lt;BR /&gt;LOAD A,B,C,D; SQL SELECT A,B,C,D FROM PP01DAT01.ARPMAST;&lt;BR /&gt;LOAD A,B,C,D; SQL SELECT A,B,C,D FROM PPSEDAT01.ARPMAST;&lt;BR /&gt;etc.&lt;/P&gt;&lt;P&gt;As long as the list of fields is the same, QlikView will concatenate the new data onto the existing table. I tend to always do the concatenation explicitly, though. I think it makes it more clear what's going on for maintenance purposes, even if it's only strictly necessary when the list of fields is different, but you still want to concatenate the new data.&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;MyTable:&lt;BR /&gt;LOAD A,B,C,D; SQL SELECT A,B,C,D FROM PP01DAT01.ARPMAST;&lt;BR /&gt;CONCATENATE (MyTable)&lt;BR /&gt;LOAD A,B,C,D; SQL SELECT A,B,C,D FROM PPSEDAT01.ARPMAST;&lt;BR /&gt;etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Nov 2010 17:26:36 GMT</pubDate>
    <dc:creator>johnw</dc:creator>
    <dc:date>2010-11-11T17:26:36Z</dc:date>
    <item>
      <title>Need generic scrip for multiple customers</title>
      <link>https://community.qlik.com/t5/QlikView/Need-generic-scrip-for-multiple-customers/m-p/177682#M45188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&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 need to load the data from a file by using generic scrip for multiple customers. But, the customers are using different libraries for the same files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;CUST1 using the file ARPMAST from library PP01DAT01&lt;/P&gt;&lt;P&gt;CUST2 using the file ARPMAST from library PPSEDAT01 and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use to write the SQL scrip as below:&lt;/P&gt;&lt;P&gt;SQL SELECT * FROM &lt;B style="mso-bidi-font-weight: normal;"&gt;PP01DAT01&lt;/B&gt;.ARPMAST&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, this is for a specific customer. L&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please tell me how I can load the data by using generic scrip for multiple customers?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Venugopal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Nov 2010 09:52:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-generic-scrip-for-multiple-customers/m-p/177682#M45188</guid>
      <dc:creator />
      <dc:date>2010-11-09T09:52:21Z</dc:date>
    </item>
    <item>
      <title>Need generic scrip for multiple customers</title>
      <link>https://community.qlik.com/t5/QlikView/Need-generic-scrip-for-multiple-customers/m-p/177683#M45189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There would probably be an approach that looks something like this:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;Customers:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;Customer, Database&lt;BR /&gt;CUST1, PP01DAT01.ARPMAST&lt;BR /&gt;CUST2, PPSEDAT01.ARPMAST&lt;BR /&gt;etc.&lt;BR /&gt;];&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;FOR I = 1 TO the number of rows in Customers&lt;BR /&gt; set a variable to the correct database&lt;BR /&gt; SQL SELECT * FROM that variable;&lt;BR /&gt;NEXT&lt;/P&gt;&lt;P&gt;But that seems more complicated than just writing the SQL for each customer:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;SQL SELECT * FROM PP01DAT01.ARPMAST;&lt;BR /&gt;SQL SELECT * FROM PPSEDAT01.ARPMAST;&lt;/P&gt;&lt;P&gt;The only advantage I can think of is if you can load the list of customers and databases from some existing file or database. Is that the situation?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Nov 2010 17:47:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-generic-scrip-for-multiple-customers/m-p/177683#M45189</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-11-09T17:47:33Z</dc:date>
    </item>
    <item>
      <title>Need generic scrip for multiple customers</title>
      <link>https://community.qlik.com/t5/QlikView/Need-generic-scrip-for-multiple-customers/m-p/177684#M45190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin:0in 0in 0pt;"&gt;Hi John,&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;Thanks a lot for your help. Is it possible to load all the ARPMAST file data from different libraries (PP01DAT01, PPSEDAT01 etc) into a single table?&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;If So, how I can differentiate a particular record from which library?&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;I would like to write a script as below:&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;Load A,B,C,D;&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;From PP01DAT01.ARPMAST;&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;From PPSEDAT01.ARPMAST;&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;Etc.&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;Here A, B, C and D are fields in ARPMAST file.&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;Regards,&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;Venugopal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Nov 2010 10:58:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-generic-scrip-for-multiple-customers/m-p/177684#M45190</guid>
      <dc:creator />
      <dc:date>2010-11-11T10:58:44Z</dc:date>
    </item>
    <item>
      <title>Need generic scrip for multiple customers</title>
      <link>https://community.qlik.com/t5/QlikView/Need-generic-scrip-for-multiple-customers/m-p/177685#M45191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like this:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;MyTable:&lt;BR /&gt;LOAD A,B,C,D; SQL SELECT A,B,C,D FROM PP01DAT01.ARPMAST;&lt;BR /&gt;LOAD A,B,C,D; SQL SELECT A,B,C,D FROM PPSEDAT01.ARPMAST;&lt;BR /&gt;etc.&lt;/P&gt;&lt;P&gt;As long as the list of fields is the same, QlikView will concatenate the new data onto the existing table. I tend to always do the concatenation explicitly, though. I think it makes it more clear what's going on for maintenance purposes, even if it's only strictly necessary when the list of fields is different, but you still want to concatenate the new data.&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;MyTable:&lt;BR /&gt;LOAD A,B,C,D; SQL SELECT A,B,C,D FROM PP01DAT01.ARPMAST;&lt;BR /&gt;CONCATENATE (MyTable)&lt;BR /&gt;LOAD A,B,C,D; SQL SELECT A,B,C,D FROM PPSEDAT01.ARPMAST;&lt;BR /&gt;etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Nov 2010 17:26:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-generic-scrip-for-multiple-customers/m-p/177685#M45191</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-11-11T17:26:36Z</dc:date>
    </item>
    <item>
      <title>Need generic scrip for multiple customers</title>
      <link>https://community.qlik.com/t5/QlikView/Need-generic-scrip-for-multiple-customers/m-p/177686#M45192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin:0in 0in 0pt;"&gt;Hi John,&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;Thanks a lot for your help.&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;Is it possible to find a particular record from which library?&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;For example, I have merged 5 records from file ARPMAST in library PP01DAT01 and 5 more records from file ARPMAST in library PPSEDAT01.&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;MyTable:&lt;BR /&gt;LOAD A,B,C,D; SQL SELECT A,B,C,D FROM PP01DAT01.ARPMAST; /*(5 records)*/&lt;BR /&gt;LOAD A,B,C,D; SQL SELECT A,B,C,D FROM PPSEDAT01.ARPMAST; /*(5 records)*/&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;How I can find a particular record from which library (i.e either PP01DAT01 or PPSEDAT01)?&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;Thanks a lot for your kind help. Your help is very much useful to my application.&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;Regards,&lt;/P&gt;&lt;P style="margin:0in 0in 0pt;"&gt;Venugopal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Nov 2010 09:12:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-generic-scrip-for-multiple-customers/m-p/177686#M45192</guid>
      <dc:creator />
      <dc:date>2010-11-12T09:12:00Z</dc:date>
    </item>
    <item>
      <title>Need generic scrip for multiple customers</title>
      <link>https://community.qlik.com/t5/QlikView/Need-generic-scrip-for-multiple-customers/m-p/177687#M45193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Just add a field to indicate the source:&lt;/P&gt;&lt;P&gt;MyTable:&lt;BR /&gt;LOAD A,B,C,D, 'PP01DAT01' AS Source ; SQL SELECT A,B,C,D FROM PP01DAT01.ARPMAST;&lt;BR /&gt;LOAD A,B,C,D, 'PPSEDAT01' AS Source ; SQL SELECT A,B,C,D FROM PPSEDAT01.ARPMAST;&lt;BR /&gt;etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Nov 2010 10:04:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-generic-scrip-for-multiple-customers/m-p/177687#M45193</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2010-11-12T10:04:29Z</dc:date>
    </item>
  </channel>
</rss>

