<?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 Read Fixed width Flat file using TOS in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Read-Fixed-width-Flat-file-using-TOS/m-p/2331095#M100115</link>
    <description>&lt;P&gt;Hi All,&lt;BR /&gt;&lt;BR /&gt;I am trying to read a Fixed Width flat file using tFileInputPositional. However, there are a couple of things that needs to be ensured when the data is red from the source.&lt;BR /&gt;i. The trailing spaces for all fields needs to be trimmed.&lt;BR /&gt;ii. If the data present in the fields of the file consist only of '*' then we need to read the field data as ''. Whereas if the data consists of characters along with '*' then the data should be read as is. (eg:'****' or '***********' gets read as '' . But 'abc**erf*' gets read as 'abc**erf*')&lt;BR /&gt;Please suggest if there is any easier way &amp;nbsp;of getting this done rather than dealing with each source field individually in a tMap.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 10:51:36 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T10:51:36Z</dc:date>
    <item>
      <title>Read Fixed width Flat file using TOS</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Read-Fixed-width-Flat-file-using-TOS/m-p/2331095#M100115</link>
      <description>&lt;P&gt;Hi All,&lt;BR /&gt;&lt;BR /&gt;I am trying to read a Fixed Width flat file using tFileInputPositional. However, there are a couple of things that needs to be ensured when the data is red from the source.&lt;BR /&gt;i. The trailing spaces for all fields needs to be trimmed.&lt;BR /&gt;ii. If the data present in the fields of the file consist only of '*' then we need to read the field data as ''. Whereas if the data consists of characters along with '*' then the data should be read as is. (eg:'****' or '***********' gets read as '' . But 'abc**erf*' gets read as 'abc**erf*')&lt;BR /&gt;Please suggest if there is any easier way &amp;nbsp;of getting this done rather than dealing with each source field individually in a tMap.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 10:51:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Read-Fixed-width-Flat-file-using-TOS/m-p/2331095#M100115</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T10:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: Read Fixed width Flat file using TOS</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Read-Fixed-width-Flat-file-using-TOS/m-p/2331096#M100116</link>
      <description>Hi&lt;BR /&gt;For 1, there is a 'trim all column' box option in the advanced setting panel of tFileInputPositional component, this box is checked by default.&amp;nbsp;&lt;BR /&gt;For 2, I think you need to hard code to check and transform the data after reading it from the source file.</description>
      <pubDate>Tue, 19 Jan 2016 02:51:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Read-Fixed-width-Flat-file-using-TOS/m-p/2331096#M100116</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-19T02:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: Read Fixed width Flat file using TOS</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Read-Fixed-width-Flat-file-using-TOS/m-p/2331097#M100117</link>
      <description>Hi, 
&lt;BR /&gt; 
&lt;BR /&gt;As suggested I tried using the below expression for point 2: 
&lt;BR /&gt; 
&lt;BR /&gt;StringHandling.LEN(StringHandling.EREPLACE(out1.row1,"*","")) &amp;gt; 0 ? Fout1.row1 : ""&amp;nbsp; 
&lt;BR /&gt; 
&lt;BR /&gt;But this gives an error like java.util.regex.PatternSyntaxException: Dangling meta character '*' near index 2. 
&lt;BR /&gt; 
&lt;BR /&gt;Please suggest whether its required to put escape characters with '*' like '\\*' to make it work.</description>
      <pubDate>Wed, 20 Jan 2016 10:29:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Read-Fixed-width-Flat-file-using-TOS/m-p/2331097#M100117</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-20T10:29:46Z</dc:date>
    </item>
  </channel>
</rss>

