<?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] TMAP in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-TMAP/m-p/2234530#M23862</link>
    <description>Hi khg,
&lt;BR /&gt;Please post your requirement properly..
&lt;BR /&gt;Your first post is contradicting the second...
&lt;BR /&gt;You said you need to retrieve last four characters if it of type 05, but the model what you have given does have only 2 characters at the last and last but has 70 ???
&lt;BR /&gt;Are you missing something?
&lt;BR /&gt;If you use a FileInputPositional component, then you could have got all the data in their respective columns right. If so use the respective column outputs to determine the way you want the output to be by specifying the condition mentioned above...</description>
    <pubDate>Thu, 06 Mar 2014 15:52:34 GMT</pubDate>
    <dc:creator>bkar81</dc:creator>
    <dc:date>2014-03-06T15:52:34Z</dc:date>
    <item>
      <title>[resolved] TMAP</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-TMAP/m-p/2234524#M23856</link>
      <description>Hi,&lt;BR /&gt;i must read a text file with different line and make xml file in the end.&lt;BR /&gt;TfileInputPositional ---- &amp;gt; TMAP -----&amp;gt; TadvancedOutputXML&lt;BR /&gt;the structure in my file text:&lt;BR /&gt;01023597411&lt;BR /&gt;04563589685 2222 &lt;BR /&gt;05469833333        2568&lt;BR /&gt;05469833333        3333&lt;BR /&gt;07565665656&lt;BR /&gt; in my tmap i created column&lt;BR /&gt;for the lines with code 01/07/04 i read all, but for my line with code 05 i must read only 4 last characters,&lt;BR /&gt;the problem is when i have an empty data for my line 05 when i generate my xml file.&lt;BR /&gt;How can i say in tmap for the line start with 05 you must read only last characters&lt;BR /&gt;Thanks.</description>
      <pubDate>Thu, 06 Mar 2014 11:59:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-TMAP/m-p/2234524#M23856</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-06T11:59:00Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] TMAP</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-TMAP/m-p/2234525#M23857</link>
      <description>Is the source file a fixed column width file or delimited file or ???
&lt;BR /&gt;Based on this only we can say how to use tMap or Regex etc...
&lt;BR /&gt;Please tell us the pattern in which the source file exist (like number of columns and how each columns are delimited etc).</description>
      <pubDate>Thu, 06 Mar 2014 12:49:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-TMAP/m-p/2234525#M23857</guid>
      <dc:creator>bkar81</dc:creator>
      <dc:date>2014-03-06T12:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] TMAP</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-TMAP/m-p/2234526#M23858</link>
      <description>the soource file is TfileInputPositional with fixed column the model is ""2,5,4,5,3,1,1,11,2,6,2,6,31,2,7,1,1,14,16,3,70,2"</description>
      <pubDate>Thu, 06 Mar 2014 13:42:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-TMAP/m-p/2234526#M23858</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-06T13:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] TMAP</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-TMAP/m-p/2234527#M23859</link>
      <description>got it... So you parse the file and get all the columns right...&lt;BR /&gt;Use the tMap component and use the equals operator to check the first 2 characters and based on that, use the columns which you want&lt;BR /&gt;For example, if your column name is Col1, then&lt;BR /&gt;row1.Col1.equals("05")?&amp;lt;consider the last column&amp;gt;:&amp;lt;consider other column&amp;gt;&lt;BR /&gt;The column to be placed after ? is the true condition (means column related to 05)&lt;BR /&gt;The column to be placed after : is the false condition (means column to consider for 04/01/07)&lt;BR /&gt;So based on the condition, use which column to be placed where</description>
      <pubDate>Thu, 06 Mar 2014 13:50:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-TMAP/m-p/2234527#M23859</guid>
      <dc:creator>bkar81</dc:creator>
      <dc:date>2014-03-06T13:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] TMAP</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-TMAP/m-p/2234528#M23860</link>
      <description>Hi khg, 
&lt;BR /&gt;I can give you an idea : 
&lt;BR /&gt;My quick code : row1.line.startsWith("05")?row1.line.split(" "):row1.line.split(" "); 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDEH.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/139897i6327E40973A75258/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDEH.png" alt="0683p000009MDEH.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Thu, 06 Mar 2014 14:04:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-TMAP/m-p/2234528#M23860</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-06T14:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] TMAP</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-TMAP/m-p/2234529#M23861</link>
      <description>Alternatively, after converting your file to delimited using your positional map, you can use the tFileInputMSDelimited component which is designed to parse multi-schema files such as yours...&lt;BR /&gt;See &lt;A href="http://www.talendforge.org/tutorials/tutorial.php?idTuto=56" rel="nofollow noopener noreferrer"&gt;http://www.talendforge.org/tutorials/tutorial.php?idTuto=56&lt;/A&gt;</description>
      <pubDate>Thu, 06 Mar 2014 15:03:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-TMAP/m-p/2234529#M23861</guid>
      <dc:creator>willm1</dc:creator>
      <dc:date>2014-03-06T15:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] TMAP</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-TMAP/m-p/2234530#M23862</link>
      <description>Hi khg,
&lt;BR /&gt;Please post your requirement properly..
&lt;BR /&gt;Your first post is contradicting the second...
&lt;BR /&gt;You said you need to retrieve last four characters if it of type 05, but the model what you have given does have only 2 characters at the last and last but has 70 ???
&lt;BR /&gt;Are you missing something?
&lt;BR /&gt;If you use a FileInputPositional component, then you could have got all the data in their respective columns right. If so use the respective column outputs to determine the way you want the output to be by specifying the condition mentioned above...</description>
      <pubDate>Thu, 06 Mar 2014 15:52:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-TMAP/m-p/2234530#M23862</guid>
      <dc:creator>bkar81</dc:creator>
      <dc:date>2014-03-06T15:52:34Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] TMAP</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-TMAP/m-p/2234531#M23863</link>
      <description>Thanks for your replies, i found the solution.</description>
      <pubDate>Fri, 07 Mar 2014 08:39:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-TMAP/m-p/2234531#M23863</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-07T08:39:51Z</dc:date>
    </item>
  </channel>
</rss>

