<?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: [resolved] [tFileInputDelimited] - Extract header and input as column var in rows in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-tFileInputDelimited-Extract-header-and-input-as-column/m-p/2340494#M108519</link>
    <description>Hi, 
&lt;BR /&gt;It actually help a lot, unfortunately was not able to open you file with TOS DO 5.3 but anyway I got the solution thanks to you. I indeed didn't think about using 2 tInputDelimited 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA9p.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138034i5F552429DA646D6F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA9p.png" alt="0683p000009MA9p.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;I actually had to tweak a little the command you gave me,&amp;nbsp; I set the tSetGlobalVar with those parameters : myKey, row2.newColumn1 
&lt;BR /&gt;Then used this to get the value in the tMap : (string)globalMap.get("myKey") to get the value stored in the tSetGlobalVar 
&lt;BR /&gt;=&amp;gt; Therefore I have a question because I saw by opening you files with editor 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MAB6.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/158321i00588DF41617C922/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MAB6.png" alt="0683p000009MAB6.png" /&gt;&lt;/span&gt; that you call a row not connected to the tMap for transtyping with :" (row3Struct)globalMap.get("myKey")).newColumn" , in my TOS I'm not allowed to call a something else than the row(s) used as input (in you example : I would have been allowed only to use (row4Struct)) moreover I don't have to add the .column to obtain the value. 
&lt;BR /&gt;Is it a limitation due to version 5.3 ? 
&lt;BR /&gt;Many thanks, 
&lt;BR /&gt;Flo</description>
    <pubDate>Tue, 02 Sep 2014 22:13:11 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-09-02T22:13:11Z</dc:date>
    <item>
      <title>[resolved] [tFileInputDelimited] - Extract header and input as column var in rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tFileInputDelimited-Extract-header-and-input-as-column/m-p/2340492#M108517</link>
      <description>Hello, 
&lt;BR /&gt;I'm beginning with Talend for Data Integration, and I've been struggling to build the below process, 
&lt;BR /&gt;any help would be much appreciated. 
&lt;BR /&gt;My goals is the following: 
&lt;BR /&gt;- read a directory containing csv files and input in tFileInputDelimited&amp;nbsp;=&amp;gt; ok 
&lt;BR /&gt;- extract header (2 lines) then memorize the value of the row1 columns in order to reuse them 
&lt;BR /&gt;- Then build a csv outfile with the following output : &amp;lt;Value of the header (row1)&amp;gt;, &amp;lt;value of column1 of each row &amp;gt; 2 &amp;gt;, &amp;lt;value of of column2 of each row &amp;gt; 2&amp;gt; .... 
&lt;BR /&gt;Basically I want the value of the header (row1) as a constant in the column1 of each row &amp;gt; 2. 
&lt;BR /&gt;I have been trying different solution one with a tmap to split the out in 2 rows based on a regex on first row, but when I'm trying to merge those into the output row afterwards with a tjavarow, value is appearing only on the first line because of the iteration process. 
&lt;BR /&gt;I also tried with tSetGlobalVar but I didn't find a way to input row value into a GlobalVar. 
&lt;BR /&gt;Also tried with tMemorize row and calling the memorized row in the tJavaRow (see screenshot below) but no luck again because of the iteration process I guess, I'm having only the first row in the output file filled with the value of row1 
&lt;BR /&gt;If you have any idea on how I could achieve this with Talend it would be nice, if not I'll do this task by standard scripting. 
&lt;BR /&gt;Many thanks in advance 
&lt;BR /&gt;Regards 
&lt;BR /&gt;Flo 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MEqC.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155287i8D031D3E8FFED05F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MEqC.png" alt="0683p000009MEqC.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Sat, 16 Nov 2024 11:31:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tFileInputDelimited-Extract-header-and-input-as-column/m-p/2340492#M108517</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T11:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] [tFileInputDelimited] - Extract header and input as column var in rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tFileInputDelimited-Extract-header-and-input-as-column/m-p/2340493#M108518</link>
      <description>This is somewhat straightforward to do: 
&lt;BR /&gt;Off the tFileList link it to a tFileInputDelimited configured to have a limit of 1 row and connect this to a tSetGlobalVar and put your row into it (i.e. row3 as the value) 
&lt;BR /&gt;Next connect it to another tFileInputDelimited with Headers configured at 2 and limit is empty. 
&lt;BR /&gt;Connect the second tFileInputDelimited to a tMap and put all of your columns in an output on it. &amp;nbsp;For the columns that you're pulling in from the header row use ((&amp;lt;row you cached&amp;gt;Struct)globalMap.get("my value")).&amp;lt;coloumn(s)&amp;gt; to get the cached row into the file.&amp;nbsp; 
&lt;BR /&gt;I've attached a working example that does this - it'll also generate the file that it will read if that portion is activated again. Edit to add: the example was made in TOS_DI 5.5. 
&lt;BR /&gt; 
&lt;A href="https://community.talend.com/legacyfs/online/membersTempo/2499/ExampleJob.zip.zip" target="_blank"&gt;ExampleJob.zip.zip&lt;/A&gt; 
&lt;BR /&gt;Hope that helps.</description>
      <pubDate>Tue, 02 Sep 2014 19:36:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tFileInputDelimited-Extract-header-and-input-as-column/m-p/2340493#M108518</guid>
      <dc:creator>rbaldwin</dc:creator>
      <dc:date>2014-09-02T19:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] [tFileInputDelimited] - Extract header and input as column var in rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tFileInputDelimited-Extract-header-and-input-as-column/m-p/2340494#M108519</link>
      <description>Hi, 
&lt;BR /&gt;It actually help a lot, unfortunately was not able to open you file with TOS DO 5.3 but anyway I got the solution thanks to you. I indeed didn't think about using 2 tInputDelimited 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA9p.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138034i5F552429DA646D6F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA9p.png" alt="0683p000009MA9p.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;I actually had to tweak a little the command you gave me,&amp;nbsp; I set the tSetGlobalVar with those parameters : myKey, row2.newColumn1 
&lt;BR /&gt;Then used this to get the value in the tMap : (string)globalMap.get("myKey") to get the value stored in the tSetGlobalVar 
&lt;BR /&gt;=&amp;gt; Therefore I have a question because I saw by opening you files with editor 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MAB6.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/158321i00588DF41617C922/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MAB6.png" alt="0683p000009MAB6.png" /&gt;&lt;/span&gt; that you call a row not connected to the tMap for transtyping with :" (row3Struct)globalMap.get("myKey")).newColumn" , in my TOS I'm not allowed to call a something else than the row(s) used as input (in you example : I would have been allowed only to use (row4Struct)) moreover I don't have to add the .column to obtain the value. 
&lt;BR /&gt;Is it a limitation due to version 5.3 ? 
&lt;BR /&gt;Many thanks, 
&lt;BR /&gt;Flo</description>
      <pubDate>Tue, 02 Sep 2014 22:13:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tFileInputDelimited-Extract-header-and-input-as-column/m-p/2340494#M108519</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-02T22:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] [tFileInputDelimited] - Extract header and input as column var in rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tFileInputDelimited-Extract-header-and-input-as-column/m-p/2340495#M108520</link>
      <description>Hello,
&lt;BR /&gt;Glad I could be of some service.
&lt;BR /&gt;It isn't a limitation of 5.3, I've done similar with versions as far back as 2.4.1. &amp;nbsp;In my example I put the entire instance of the row into the globalMap - which is useful if you need more than one column out of it and my example was using two of them - so looking at it, on the tSetGlobalVar I set the value with the key "myKey" to be row3, which is the input that goes into the tSetGlobalVar. &amp;nbsp;If your input going into the tSetGlobalVar was, say, row2 you would need to use row2 and row2Struct respectively. &amp;nbsp;Hope that clarifies that.</description>
      <pubDate>Wed, 03 Sep 2014 18:11:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tFileInputDelimited-Extract-header-and-input-as-column/m-p/2340495#M108520</guid>
      <dc:creator>rbaldwin</dc:creator>
      <dc:date>2014-09-03T18:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] [tFileInputDelimited] - Extract header and input as column var in rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tFileInputDelimited-Extract-header-and-input-as-column/m-p/2340496#M108521</link>
      <description>Yes, I got it. Thank you for the explanation.</description>
      <pubDate>Fri, 05 Sep 2014 07:53:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tFileInputDelimited-Extract-header-and-input-as-column/m-p/2340496#M108521</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-05T07:53:40Z</dc:date>
    </item>
  </channel>
</rss>

