<?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: tMap use column length in expression in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tMap-use-column-length-in-expression/m-p/2306264#M77832</link>
    <description>&lt;P&gt;There are positional data components in Talend that may help.&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://help.talend.com/reader/EyxKOxdpLPnsZsAJgZzG6w/9qTuuRJZ8tq~iw3ilvLy4g" target="_blank" rel="nofollow noopener noreferrer"&gt;Handling a positional file based on a dynamic schema&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://help.talend.com/reader/93xtN4~V2JXR6ZY1r7R31Q/oYFvNLOldg7FQ2hAxvSVRQ" target="_blank" rel="nofollow noopener noreferrer"&gt;Reading data from a positional file&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://help.talend.com/reader/F197Ti6LJkS~mDBrtzYNAw/6DCtUohymJNUyANhfaw5vg" target="_blank" rel="nofollow noopener noreferrer"&gt;Regex to Positional file&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 30 Jun 2017 16:16:50 GMT</pubDate>
    <dc:creator>cterenzi</dc:creator>
    <dc:date>2017-06-30T16:16:50Z</dc:date>
    <item>
      <title>tMap use column length in expression</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-use-column-length-in-expression/m-p/2306261#M77829</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;is there any way to access the column length in the expression&lt;/P&gt; 
&lt;P&gt;please find the screenshot&lt;/P&gt; 
&lt;P&gt;Instead of numbers directly can i use the column length and if so can you please tell the syntax.&lt;/P&gt; 
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2017 14:54:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-use-column-length-in-expression/m-p/2306261#M77829</guid>
      <dc:creator>vidya821</dc:creator>
      <dc:date>2017-06-30T14:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: tMap use column length in expression</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-use-column-length-in-expression/m-p/2306262#M77830</link>
      <description>&lt;P&gt;Unfortunately no, you cannot access that variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, from a code logic perspective, it does not work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First of all, you need to understand that the length for datatype&amp;nbsp;String is only enforced when writing to a database. &amp;nbsp;Talend will not truncate your string if you are writing to a file unless you do so. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hence, the actual length of the string can be:&lt;/P&gt;
&lt;P&gt;- Shorter that the length you defined&lt;/P&gt;
&lt;P&gt;- Longer than the length you defined&lt;/P&gt;
&lt;P&gt;- exactly the length as you defined&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hence, in 2 out of 3 cases, your transformation logic will be wrong. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;You need to get the actual length of the string and pass that into your substring function.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2017 15:00:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-use-column-length-in-expression/m-p/2306262#M77830</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-30T15:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: tMap use column length in expression</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-use-column-length-in-expression/m-p/2306263#M77831</link>
      <description>&lt;P&gt;This job is only to separate the substrings from string and so the length mentioned in the design will be fixed and as far as writing to database is concerned, it will be a new job using the output file of the previous job.&lt;/P&gt;&lt;P&gt;anyways,&amp;nbsp;it means the value has to be entered manually, there is no way that we can get the length.&lt;BR /&gt;else is there any design that i can use to separate substrings from a string using somethig else than tMap which can reduce the manual effort ?&lt;BR /&gt;thanks&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2017 15:03:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-use-column-length-in-expression/m-p/2306263#M77831</guid>
      <dc:creator>vidya821</dc:creator>
      <dc:date>2017-06-30T15:03:50Z</dc:date>
    </item>
    <item>
      <title>Re: tMap use column length in expression</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-use-column-length-in-expression/m-p/2306264#M77832</link>
      <description>&lt;P&gt;There are positional data components in Talend that may help.&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://help.talend.com/reader/EyxKOxdpLPnsZsAJgZzG6w/9qTuuRJZ8tq~iw3ilvLy4g" target="_blank" rel="nofollow noopener noreferrer"&gt;Handling a positional file based on a dynamic schema&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://help.talend.com/reader/93xtN4~V2JXR6ZY1r7R31Q/oYFvNLOldg7FQ2hAxvSVRQ" target="_blank" rel="nofollow noopener noreferrer"&gt;Reading data from a positional file&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://help.talend.com/reader/F197Ti6LJkS~mDBrtzYNAw/6DCtUohymJNUyANhfaw5vg" target="_blank" rel="nofollow noopener noreferrer"&gt;Regex to Positional file&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2017 16:16:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-use-column-length-in-expression/m-p/2306264#M77832</guid>
      <dc:creator>cterenzi</dc:creator>
      <dc:date>2017-06-30T16:16:50Z</dc:date>
    </item>
  </channel>
</rss>

