<?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 TOS V7 : choice of tFileInput component for specific input file in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/TOS-V7-choice-of-tFileInput-component-for-specific-input-file/m-p/2361623#M125937</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="short_text"&gt;&lt;SPAN class=""&gt;my input file has this specific format&lt;/SPAN&gt;&lt;/SPAN&gt; :&lt;/P&gt; 
&lt;PRE&gt;	&amp;lt;PIN_NUMBER&amp;gt; 	T001 
	&amp;lt;NAME&amp;gt; 	TR_125E 
	&amp;lt;OPERATIONAL_NAME&amp;gt; 	TR_125E 
			&amp;lt;TYPE&amp;gt; 	ARRIVEE 
			&amp;lt;VISU&amp;gt; 	ANY 
			&amp;lt;ATTRIBUT&amp;gt; 	SANS 
			&amp;lt;BALISES&amp;gt; 
						 A1	COMP_AAA	(PRINTABLE)
						 B1	(PRINTABLE)
					         C1	CC_LORNI	(PRINTABLE)
						&amp;lt;END_LIST&amp;gt; &lt;/PRE&gt; 
&lt;P&gt;&lt;SPAN class=""&gt;Could you suggest me, which component of Talend would be the most appropriate to read this file?&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class=""&gt;Best regards&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 19 Jul 2018 16:17:33 GMT</pubDate>
    <dc:creator>toos</dc:creator>
    <dc:date>2018-07-19T16:17:33Z</dc:date>
    <item>
      <title>TOS V7 : choice of tFileInput component for specific input file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/TOS-V7-choice-of-tFileInput-component-for-specific-input-file/m-p/2361623#M125937</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="short_text"&gt;&lt;SPAN class=""&gt;my input file has this specific format&lt;/SPAN&gt;&lt;/SPAN&gt; :&lt;/P&gt; 
&lt;PRE&gt;	&amp;lt;PIN_NUMBER&amp;gt; 	T001 
	&amp;lt;NAME&amp;gt; 	TR_125E 
	&amp;lt;OPERATIONAL_NAME&amp;gt; 	TR_125E 
			&amp;lt;TYPE&amp;gt; 	ARRIVEE 
			&amp;lt;VISU&amp;gt; 	ANY 
			&amp;lt;ATTRIBUT&amp;gt; 	SANS 
			&amp;lt;BALISES&amp;gt; 
						 A1	COMP_AAA	(PRINTABLE)
						 B1	(PRINTABLE)
					         C1	CC_LORNI	(PRINTABLE)
						&amp;lt;END_LIST&amp;gt; &lt;/PRE&gt; 
&lt;P&gt;&lt;SPAN class=""&gt;Could you suggest me, which component of Talend would be the most appropriate to read this file?&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class=""&gt;Best regards&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jul 2018 16:17:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/TOS-V7-choice-of-tFileInput-component-for-specific-input-file/m-p/2361623#M125937</guid>
      <dc:creator>toos</dc:creator>
      <dc:date>2018-07-19T16:17:33Z</dc:date>
    </item>
    <item>
      <title>Re: TOS V7 : choice of tFileInput component for specific input file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/TOS-V7-choice-of-tFileInput-component-for-specific-input-file/m-p/2361624#M125938</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;Since the file is not any specific format, why don't you try reading it using a tinputdelimited component with a rare field separator like "!!!!!!!". This will parse entire line as a single string field. Then use regular expressions within tmap/tjavarow to parse the fields based on proper if else conditions.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;pseudo logic :-&lt;/P&gt; 
&lt;P&gt;if substring (input_row.inboundstring,10)&amp;nbsp;is equal to&amp;nbsp; "&amp;lt;PIN_NUMBER&amp;gt;"&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; output_row.pin_number = trim(&lt;SPAN&gt;substring (input_row.inboundstring,11, string_length() )&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Bit circuitous way but it should help in your case.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Warm Regards,&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Nikhil&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jul 2018 19:01:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/TOS-V7-choice-of-tFileInput-component-for-specific-input-file/m-p/2361624#M125938</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-19T19:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: TOS V7 : choice of tFileInput component for specific input file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/TOS-V7-choice-of-tFileInput-component-for-specific-input-file/m-p/2361625#M125939</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;Yes, I can also use the tFileInputRow/tFileInputFullRow or tFileInputRegex (?), but I'd like to find a&amp;nbsp; better solutions ...&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class="short_text"&gt;Thank you for your attention Nikhil&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class="short_text"&gt;Best Regards&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jul 2018 08:12:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/TOS-V7-choice-of-tFileInput-component-for-specific-input-file/m-p/2361625#M125939</guid>
      <dc:creator>toos</dc:creator>
      <dc:date>2018-07-20T08:12:09Z</dc:date>
    </item>
  </channel>
</rss>

