<?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 How to parse a fixed length using tFileInputPositional component with its Pattern option. in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-parse-a-fixed-length-using-tFileInputPositional-component/m-p/2266940#M45987</link>
    <description>&lt;P&gt;i tried to parse a fixed length file. File sample data is:&lt;/P&gt; 
&lt;P&gt;GClog OP 00000099140001047454 2018-10-26 0&lt;/P&gt; 
&lt;P&gt;length pattern is:2,5,30,12,6.&lt;/P&gt; 
&lt;P&gt;I want to parse above line like this: GC;log;OP;00000099140001047454;2018-10-26;0&lt;/P&gt; 
&lt;P&gt;For getting output like above, i have first tried to simply parse the fixed length file first using this job:&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="5 Rows are processing" style="width: 823px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M2t7.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/132681i58208D4D8AA89359/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M2t7.png" alt="0683p000009M2t7.png" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;5 Rows are processing&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Schema description: as every time schema is keep on changing and file having multiple lines also, so i tried to define schema as line only.like this:&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="fixedLengthSchema.PNG" style="width: 565px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M37T.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150466i8655B04B5448657F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M37T.png" alt="0683p000009M37T.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;when i ran this job,output is :&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="fixedJobOutput.PNG" style="width: 448px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M39J.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157338iAB0F78CD04928F09/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M39J.png" alt="0683p000009M39J.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;as in first image it is showing that 5 rows processing, while in tLogRow it is displaying only one row record. Why it is displaying only one record not all.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;So kindly help me where i am doing mistake and a s i mentioned we do not ahve any fixed schema so we can not use Filepositional metadata option. Thanking you in advance. Kindly guide me and help me.&lt;/P&gt;</description>
    <pubDate>Fri, 15 Feb 2019 06:22:14 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-02-15T06:22:14Z</dc:date>
    <item>
      <title>How to parse a fixed length using tFileInputPositional component with its Pattern option.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-parse-a-fixed-length-using-tFileInputPositional-component/m-p/2266940#M45987</link>
      <description>&lt;P&gt;i tried to parse a fixed length file. File sample data is:&lt;/P&gt; 
&lt;P&gt;GClog OP 00000099140001047454 2018-10-26 0&lt;/P&gt; 
&lt;P&gt;length pattern is:2,5,30,12,6.&lt;/P&gt; 
&lt;P&gt;I want to parse above line like this: GC;log;OP;00000099140001047454;2018-10-26;0&lt;/P&gt; 
&lt;P&gt;For getting output like above, i have first tried to simply parse the fixed length file first using this job:&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="5 Rows are processing" style="width: 823px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M2t7.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/132681i58208D4D8AA89359/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M2t7.png" alt="0683p000009M2t7.png" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;5 Rows are processing&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Schema description: as every time schema is keep on changing and file having multiple lines also, so i tried to define schema as line only.like this:&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="fixedLengthSchema.PNG" style="width: 565px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M37T.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150466i8655B04B5448657F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M37T.png" alt="0683p000009M37T.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;when i ran this job,output is :&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="fixedJobOutput.PNG" style="width: 448px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M39J.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157338iAB0F78CD04928F09/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M39J.png" alt="0683p000009M39J.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;as in first image it is showing that 5 rows processing, while in tLogRow it is displaying only one row record. Why it is displaying only one record not all.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;So kindly help me where i am doing mistake and a s i mentioned we do not ahve any fixed schema so we can not use Filepositional metadata option. Thanking you in advance. Kindly guide me and help me.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Feb 2019 06:22:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-parse-a-fixed-length-using-tFileInputPositional-component/m-p/2266940#M45987</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-15T06:22:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to parse a fixed length using tFileInputPositional component with its Pattern option.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-parse-a-fixed-length-using-tFileInputPositional-component/m-p/2266941#M45988</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;OL&gt; 
 &lt;LI&gt;I not sure why you remove line separator, but even if file contains 1 row, leave it as default "\n"&lt;/LI&gt; 
 &lt;LI&gt;in your case pattern must be -&amp;nbsp;"2,4,3,20,11,2" or&amp;nbsp;"2,4,3,21,10,1"&lt;/LI&gt; 
 &lt;LI&gt;you need define column for each group - 6 columns&lt;/LI&gt; 
 &lt;LI&gt;finally when you add at the end tFileOutputDelimited with separator ";" you will have string as expected &lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;&lt;/LI&gt; 
&lt;/OL&gt; 
&lt;PRE&gt;GC;log;OP;00000099140001047454;2018-10-26;0&lt;/PRE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Feb 2019 06:48:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-parse-a-fixed-length-using-tFileInputPositional-component/m-p/2266941#M45988</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2019-02-15T06:48:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to parse a fixed length using tFileInputPositional component with its Pattern option.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-parse-a-fixed-length-using-tFileInputPositional-component/m-p/2266942#M45989</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks for your reply first.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;OL&gt; 
 &lt;LI&gt;I not sure why you remove line separator, but even if file contains 1 row, leave it as default "\n".&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="running with default&amp;quot;/n&amp;quot; option, giving above result" style="width: 474px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M2x4.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133912iD8B7701CD642B9AC/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M2x4.png" alt="0683p000009M2x4.png" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;running with default"/n" option, giving above result&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;2. in your case pattern must be - "2,4,3,20,11,2" or "2,4,3,21,10,1":&lt;/P&gt;&lt;P&gt;ans: sample string :&amp;nbsp;GClog OP 00000099140001047454 2018-10-26 0.Length specification as follows:&lt;/P&gt;&lt;P&gt;(a)GC=2&lt;/P&gt;&lt;P&gt;(b)log&amp;nbsp; =5(3 alphabet+2 space)&lt;/P&gt;&lt;P&gt;(c)OP 00000099140001047454&amp;nbsp; &amp;nbsp; &amp;nbsp;=30(2 alphabet+3 space+20 digits+5 space)&lt;/P&gt;&lt;P&gt;(d)2018-10-26&amp;nbsp; =12(10 count for date format+2 space)&lt;/P&gt;&lt;P&gt;(e)&amp;nbsp; &amp;nbsp; &amp;nbsp;0=(5 space+1 digit)&lt;/P&gt;3. you need define column for each group - 6 column.&lt;P&gt;&amp;nbsp;&lt;/P&gt;ans: if suppose i have 50 lines, and each having different number of column. than how can i need to mange this?&lt;/LI&gt; 
&lt;/OL&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; I can not define column in a static manner, column number may be change as well as name also. Fixled length file having 1 line or can be more than 100 lines.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Feb 2019 07:26:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-parse-a-fixed-length-using-tFileInputPositional-component/m-p/2266942#M45989</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-15T07:26:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to parse a fixed length using tFileInputPositional component with its Pattern option.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-parse-a-fixed-length-using-tFileInputPositional-component/m-p/2266943#M45990</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;2. length&amp;nbsp;calculated for each field, but not from begin&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;3. you can not use this component for flexible structure - positional files is fixed, this is not doubt&amp;nbsp;- how you plan to change (and guess) pattern if it different for each row?&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;3 just mean - you choose the wrong component &lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;upd, you can attach full file, maybe we could suggest the best way (maybe ... )&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Feb 2019 07:33:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-parse-a-fixed-length-using-tFileInputPositional-component/m-p/2266943#M45990</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2019-02-15T07:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to parse a fixed length using tFileInputPositional component with its Pattern option.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-parse-a-fixed-length-using-tFileInputPositional-component/m-p/2266944#M45991</link>
      <description>Which component then i should have to check.Please suggest.&lt;BR /&gt;</description>
      <pubDate>Fri, 15 Feb 2019 07:38:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-parse-a-fixed-length-using-tFileInputPositional-component/m-p/2266944#M45991</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-15T07:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to parse a fixed length using tFileInputPositional component with its Pattern option.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-parse-a-fixed-length-using-tFileInputPositional-component/m-p/2266945#M45992</link>
      <description>&lt;P&gt;possible - there is no one of components which resolve your task, but it not mean not possible to find a solution&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;it always depends from global patterns - what is common for your rows? how you will guess - rules for row1 and row37?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Feb 2019 07:44:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-parse-a-fixed-length-using-tFileInputPositional-component/m-p/2266945#M45992</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2019-02-15T07:44:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to parse a fixed length using tFileInputPositional component with its Pattern option.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-parse-a-fixed-length-using-tFileInputPositional-component/m-p/2266946#M45993</link>
      <description>&lt;P&gt;using regular expression, i am filtering same row data and write it to a positional file and then using there respective fixed length description, i am trying to parse. For file sample purpose you can view this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;GCULOG 9914OP - General - Holdings - 002 21487 1047454545819320181121130053&lt;BR /&gt;GClog QA 00000099140001047454 2018-10-26 0&lt;/P&gt;</description>
      <pubDate>Fri, 15 Feb 2019 08:35:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-parse-a-fixed-length-using-tFileInputPositional-component/m-p/2266946#M45993</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-15T08:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to parse a fixed length using tFileInputPositional component with its Pattern option.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-parse-a-fixed-length-using-tFileInputPositional-component/m-p/2266947#M45994</link>
      <description>&lt;P&gt;For your reference attaching sample file. Please check it.&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LuJh"&gt;fixedFileSample.txt&lt;/A&gt;</description>
      <pubDate>Fri, 15 Feb 2019 08:47:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-parse-a-fixed-length-using-tFileInputPositional-component/m-p/2266947#M45994</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-15T08:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to parse a fixed length using tFileInputPositional component with its Pattern option.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-parse-a-fixed-length-using-tFileInputPositional-component/m-p/2266948#M45995</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;HR /&gt; 
 &lt;A href="https://community.qlik.com/s/profile/0053p000007LOWAAA4"&gt;@vinayak019&lt;/A&gt;&amp;nbsp;wrote: 
 &lt;BR /&gt; 
 &lt;P&gt;using regular expression, i am filtering same row data and write it to a positional file and then using there respective fixed length description, i am trying to parse. For file sample purpose you can view this:&lt;/P&gt; 
 &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;P&gt;GCULOG 9914OP - General - Holdings - 002 21487 1047454545819320181121130053&lt;BR /&gt;GClog QA 00000099140001047454 2018-10-26 0&lt;/P&gt; 
 &lt;HR /&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;P&gt;this what I mean - if you understand based on more than 2 rows, how many patterns you have&lt;/P&gt; 
&lt;P&gt;you could sort rows by - length, substring, regex to proper components with defined structure and pattern, then you could merge them back (if need)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;all depends on how many this patterns you are expected&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;but this is never possible to decide based on 2 rows only &lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Feb 2019 09:03:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-parse-a-fixed-length-using-tFileInputPositional-component/m-p/2266948#M45995</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2019-02-15T09:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to parse a fixed length using tFileInputPositional component with its Pattern option.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-parse-a-fixed-length-using-tFileInputPositional-component/m-p/2266949#M45996</link>
      <description>&lt;P&gt;that is correct. that file having five different type of datasets, which will be filtered using regular expression in tFilterRow Advanced options.but how can i break those datasets on the basis of their length.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Feb 2019 09:41:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-parse-a-fixed-length-using-tFileInputPositional-component/m-p/2266949#M45996</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-15T09:41:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to parse a fixed length using tFileInputPositional component with its Pattern option.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-parse-a-fixed-length-using-tFileInputPositional-component/m-p/2266950#M45997</link>
      <description>&lt;P&gt;the simplest way (possible may be another, but this is easy to implement)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
 &lt;LI&gt;read file and iterate row by row&lt;/LI&gt;
 &lt;LI&gt;based on RunIf trigger append row to 1 from 5 files&lt;/LI&gt;
 &lt;LI&gt;run 5 subjobs - 1 for each pattern&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;it is not a universal solution, but it could be designed very fast and it will work&lt;/P&gt;
&lt;P&gt;you can add one more filter - not matched to any of patterns and store rejected rows for future analysis&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Feb 2019 09:46:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-parse-a-fixed-length-using-tFileInputPositional-component/m-p/2266950#M45997</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2019-02-15T09:46:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to parse a fixed length using tFileInputPositional component with its Pattern option.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-parse-a-fixed-length-using-tFileInputPositional-component/m-p/2266951#M45998</link>
      <description>&lt;P&gt;I have implemented, but still not able to parse the fixed length file. Still same issue persists , on the basis of length pattern it is only reading 1 record .Not able to cross this barrier.can you ponder and showed me a designed job using length pattern for already shared fixed length file to delimiter file. Looking forward for your guidance.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Feb 2019 07:13:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-parse-a-fixed-length-using-tFileInputPositional-component/m-p/2266951#M45998</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-18T07:13:17Z</dc:date>
    </item>
  </channel>
</rss>

