<?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] Get input file row by row as a string in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Get-input-file-row-by-row-as-a-string/m-p/2359645#M124397</link>
    <description>Hello 
&lt;BR /&gt;tFileInputFullRow ---row1--&amp;gt;tFlowToIterate--iterate--&amp;gt;tFixedFlowInput---&amp;gt;tExtractDlimitedFields--tMap---tMysqlOutput 
&lt;BR /&gt;On tFixedFlowInput, only generate one row with one column, set the value of column as: (String)globalMap.get("row1.line") 
&lt;BR /&gt;On tExtractDlimitedFields, extract the delimited values 
&lt;BR /&gt;On tmap, add a new column called line, set the expression as: (String)globalMap.get("row1.line") 
&lt;BR /&gt;if you need to filter some columns, doing that on another tmap or tFilterColumns component. 
&lt;BR /&gt;about tFlowToIterate, see 5827. 
&lt;BR /&gt;Best regards 
&lt;BR /&gt; 
&lt;BR /&gt; shong</description>
    <pubDate>Tue, 17 Nov 2009 06:10:13 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2009-11-17T06:10:13Z</dc:date>
    <item>
      <title>[resolved] Get input file row by row as a string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Get-input-file-row-by-row-as-a-string/m-p/2359642#M124394</link>
      <description>Hi, I apologize if this have been answered before.
&lt;BR /&gt;TOS 3.2.0, Java
&lt;BR /&gt;I have simple job: Get the list of files from a directory and parse one by one and store data in database table:
&lt;BR /&gt; tFileList =&amp;gt; tFileInputDelimited =&amp;gt; tMap =&amp;gt; Database Table
&lt;BR /&gt;Each file row has more than 100 ~ delimited values, and each file has sometimes 10000 rows.
&lt;BR /&gt;I use tMap to extract few of values in each row and map to a field in database table. 
&lt;BR /&gt;One of the values is file name itself which I got like this: ((String)globalMap.get("tFileList_1_CURRENT_FILE"))
&lt;BR /&gt;One of the field in the table is current file row itself. Since I have more that a 100 delimited columns it would be a pain to concatenate each individual column. Is there a variable that I can use to reference entire row (as a string) as it comes from the file.
&lt;BR /&gt;Thanks in advance.</description>
      <pubDate>Sat, 16 Nov 2024 13:41:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Get-input-file-row-by-row-as-a-string/m-p/2359642#M124394</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T13:41:17Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Get input file row by row as a string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Get-input-file-row-by-row-as-a-string/m-p/2359643#M124395</link>
      <description>Hello 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;One of the field in the table is current file row itself. Since I have more that a 100 delimited columns it would be a pain to concatenate each individual column.&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;You can use tFileInputFullRow component to read the whole line as one row. 
&lt;BR /&gt;Best regards 
&lt;BR /&gt; 
&lt;BR /&gt; shong</description>
      <pubDate>Fri, 13 Nov 2009 03:12:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Get-input-file-row-by-row-as-a-string/m-p/2359643#M124395</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-11-13T03:12:24Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Get input file row by row as a string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Get-input-file-row-by-row-as-a-string/m-p/2359644#M124396</link>
      <description>Thanks Shong, but I also need to extract few elements from that line.
&lt;BR /&gt;tFileInputFullRow let me extract just whole row and tfileInputDelimited let me extract delimited values that I need.
&lt;BR /&gt;What I need to map is 3 elements from file delimited row and a whole row itself. I there a way to do that. is there variable in tfileInputDelimited that holds whole row string.
&lt;BR /&gt;Thanks.</description>
      <pubDate>Mon, 16 Nov 2009 16:05:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Get-input-file-row-by-row-as-a-string/m-p/2359644#M124396</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-11-16T16:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Get input file row by row as a string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Get-input-file-row-by-row-as-a-string/m-p/2359645#M124397</link>
      <description>Hello 
&lt;BR /&gt;tFileInputFullRow ---row1--&amp;gt;tFlowToIterate--iterate--&amp;gt;tFixedFlowInput---&amp;gt;tExtractDlimitedFields--tMap---tMysqlOutput 
&lt;BR /&gt;On tFixedFlowInput, only generate one row with one column, set the value of column as: (String)globalMap.get("row1.line") 
&lt;BR /&gt;On tExtractDlimitedFields, extract the delimited values 
&lt;BR /&gt;On tmap, add a new column called line, set the expression as: (String)globalMap.get("row1.line") 
&lt;BR /&gt;if you need to filter some columns, doing that on another tmap or tFilterColumns component. 
&lt;BR /&gt;about tFlowToIterate, see 5827. 
&lt;BR /&gt;Best regards 
&lt;BR /&gt; 
&lt;BR /&gt; shong</description>
      <pubDate>Tue, 17 Nov 2009 06:10:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Get-input-file-row-by-row-as-a-string/m-p/2359645#M124397</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-11-17T06:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Get input file row by row as a string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Get-input-file-row-by-row-as-a-string/m-p/2359646#M124398</link>
      <description>perfect, thanks....</description>
      <pubDate>Tue, 01 Dec 2009 18:10:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Get-input-file-row-by-row-as-a-string/m-p/2359646#M124398</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-12-01T18:10:42Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Get input file row by row as a string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Get-input-file-row-by-row-as-a-string/m-p/2359647#M124399</link>
      <description>Dear Shong, 
&lt;BR /&gt; 
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;tFileInputFullRow ---row1--&amp;gt;tFlowToIterate--iterate--&amp;gt;tFixedFlowInput---&amp;gt;tExtractDlimitedFields--tMap---tMysqlOutput in this flow if I have to extract data for fixed width file for each row with different length, which component i should use in place of&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;tExtractDlimitedFields?&lt;/FONT&gt;&lt;/FONT&gt;</description>
      <pubDate>Thu, 25 Aug 2016 07:11:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Get-input-file-row-by-row-as-a-string/m-p/2359647#M124399</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2016-08-25T07:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Get input file row by row as a string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Get-input-file-row-by-row-as-a-string/m-p/2359648#M124400</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Dear Shong,&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;tFileInputFullRow ---row1--&amp;gt;tFlowToIterate--iterate--&amp;gt;tFixedFlowInput---&amp;gt;tExtractDlimitedFields--tMap---tMysqlOutput in this flow if I have to extract data for fixed width file for each row with different length, which component i should use in place of&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;tExtractDlimitedFields?&lt;/FONT&gt;&lt;/FONT&gt;&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Take a look at tExtractPositionalFields component. 
&lt;BR /&gt;Regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Thu, 25 Aug 2016 10:17:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Get-input-file-row-by-row-as-a-string/m-p/2359648#M124400</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-25T10:17:26Z</dc:date>
    </item>
  </channel>
</rss>

