<?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 Reading param context from an excel sheet in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Reading-param-context-from-an-excel-sheet/m-p/2281557#M56049</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a job where it is taking 3 context param from an excel sheet:&lt;/P&gt;
&lt;P&gt;1. .schema file&lt;/P&gt;
&lt;P&gt;2. Data File&lt;/P&gt;
&lt;P&gt;3. Output File&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I was thinking if it's possible to take these 3 context from a .xls file as it is running for mutiple times.&lt;/P&gt;
&lt;P&gt;The .xls file will have these information and there's like thousand over information and I do not want having to change the context_param manually each time.. :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a way we can automate the job to take the context param from the excel sheet and run it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE&gt;
 &lt;TBODY&gt;
  &lt;TR&gt;
   &lt;TD&gt;SCHEMA&lt;/TD&gt;
   &lt;TD&gt;DATA_FILE&lt;/TD&gt;
   &lt;TD&gt;OUTPUT&lt;/TD&gt;
  &lt;/TR&gt;
  &lt;TR&gt;
   &lt;TD&gt;I:\Schema\users.schema&lt;/TD&gt;
   &lt;TD&gt;I:\Data_File\users_data.txt&lt;/TD&gt;
   &lt;TD&gt;I:\Output\Output1.txt&lt;/TD&gt;
  &lt;/TR&gt;
  &lt;TR&gt;
   &lt;TD&gt;I:\Schema\users1.schema&lt;/TD&gt;
   &lt;TD&gt;I:\Data_File\users1_data.txt&lt;/TD&gt;
   &lt;TD&gt;I:\Output\Output2.txt&lt;/TD&gt;
  &lt;/TR&gt;
 &lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help would be great, thanks.&lt;/P&gt;</description>
    <pubDate>Fri, 11 Jan 2019 03:53:59 GMT</pubDate>
    <dc:creator>sszzxx</dc:creator>
    <dc:date>2019-01-11T03:53:59Z</dc:date>
    <item>
      <title>Reading param context from an excel sheet</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Reading-param-context-from-an-excel-sheet/m-p/2281557#M56049</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a job where it is taking 3 context param from an excel sheet:&lt;/P&gt;
&lt;P&gt;1. .schema file&lt;/P&gt;
&lt;P&gt;2. Data File&lt;/P&gt;
&lt;P&gt;3. Output File&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I was thinking if it's possible to take these 3 context from a .xls file as it is running for mutiple times.&lt;/P&gt;
&lt;P&gt;The .xls file will have these information and there's like thousand over information and I do not want having to change the context_param manually each time.. :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a way we can automate the job to take the context param from the excel sheet and run it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE&gt;
 &lt;TBODY&gt;
  &lt;TR&gt;
   &lt;TD&gt;SCHEMA&lt;/TD&gt;
   &lt;TD&gt;DATA_FILE&lt;/TD&gt;
   &lt;TD&gt;OUTPUT&lt;/TD&gt;
  &lt;/TR&gt;
  &lt;TR&gt;
   &lt;TD&gt;I:\Schema\users.schema&lt;/TD&gt;
   &lt;TD&gt;I:\Data_File\users_data.txt&lt;/TD&gt;
   &lt;TD&gt;I:\Output\Output1.txt&lt;/TD&gt;
  &lt;/TR&gt;
  &lt;TR&gt;
   &lt;TD&gt;I:\Schema\users1.schema&lt;/TD&gt;
   &lt;TD&gt;I:\Data_File\users1_data.txt&lt;/TD&gt;
   &lt;TD&gt;I:\Output\Output2.txt&lt;/TD&gt;
  &lt;/TR&gt;
 &lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help would be great, thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2019 03:53:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Reading-param-context-from-an-excel-sheet/m-p/2281557#M56049</guid>
      <dc:creator>sszzxx</dc:creator>
      <dc:date>2019-01-11T03:53:59Z</dc:date>
    </item>
    <item>
      <title>Re: Reading param context from an excel sheet</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Reading-param-context-from-an-excel-sheet/m-p/2281558#M56050</link>
      <description>&lt;P&gt;generally - yes&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;variant 1 - read file with Input component and connect it to tFlowToIterate&lt;/P&gt;
&lt;P&gt;tFlowToIterate automatically store each column to the global variable.&lt;/P&gt;
&lt;P&gt;then do all other steps as iteration. You will have a loop for each row, on each iteration you can use correspondent values with (example) (String)globalMap.get("row1.&lt;SPAN&gt;SCHEMA&lt;/SPAN&gt;")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;variant 2 - same but with context variable. Little more complicated. You will need to create a loop for reading file row by row and store values to context variable from single row in the iteration. But variant 1 do absolutely same tasks&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2019 07:04:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Reading-param-context-from-an-excel-sheet/m-p/2281558#M56050</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2019-01-11T07:04:15Z</dc:date>
    </item>
  </channel>
</rss>

