<?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 [resolved] Swap Data in text file in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Swap-Data-in-text-file/m-p/2367872#M131202</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;I have a text file that I need to change some data in. The file is x12 formatted file but there is only one segment where I need to move the data. This is a sample of one of the lines:&lt;/P&gt; 
&lt;PRE&gt;W01*1*EA*111101001985*VN*C4041C 058A P042 S*29.50*29.50**1**0.00*106480002&lt;/PRE&gt; 
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I need to swap 111101001985 and 106480002. This line is just delimited by an *. &amp;nbsp;I can't just read it in as a delimited file as there are other lines in the file that have different formatted text. But any lines that start with W01 I want to do this with.&lt;BR /&gt;I think I could do it by using tFileInputRaw and connect that with tjavarow. I'm just not sure the code to put in. Then the other lines I would just write back out to the text file as is.&lt;BR /&gt;Any help would be appreciated.&lt;/P&gt;</description>
    <pubDate>Tue, 14 Jul 2015 20:13:17 GMT</pubDate>
    <dc:creator>ptromblee</dc:creator>
    <dc:date>2015-07-14T20:13:17Z</dc:date>
    <item>
      <title>[resolved] Swap Data in text file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Swap-Data-in-text-file/m-p/2367872#M131202</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;I have a text file that I need to change some data in. The file is x12 formatted file but there is only one segment where I need to move the data. This is a sample of one of the lines:&lt;/P&gt; 
&lt;PRE&gt;W01*1*EA*111101001985*VN*C4041C 058A P042 S*29.50*29.50**1**0.00*106480002&lt;/PRE&gt; 
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I need to swap 111101001985 and 106480002. This line is just delimited by an *. &amp;nbsp;I can't just read it in as a delimited file as there are other lines in the file that have different formatted text. But any lines that start with W01 I want to do this with.&lt;BR /&gt;I think I could do it by using tFileInputRaw and connect that with tjavarow. I'm just not sure the code to put in. Then the other lines I would just write back out to the text file as is.&lt;BR /&gt;Any help would be appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jul 2015 20:13:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Swap-Data-in-text-file/m-p/2367872#M131202</guid>
      <dc:creator>ptromblee</dc:creator>
      <dc:date>2015-07-14T20:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Swap Data in text file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Swap-Data-in-text-file/m-p/2367873#M131203</link>
      <description>Hi&amp;nbsp;
&lt;BR /&gt;You can use tFileInputFullRow to read the file line by line, and then filter the lines that starts with "
&lt;FONT size="2"&gt;&lt;FONT face="Verdana," helvetica=""&gt;W01&lt;/FONT&gt;&lt;/FONT&gt;" and process these lines.
&lt;BR /&gt;tFileInputFullRow--main--tFilterRow--main--....
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;--reject--...
&lt;BR /&gt;BRS
&lt;BR /&gt;Shong</description>
      <pubDate>Wed, 15 Jul 2015 01:35:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Swap-Data-in-text-file/m-p/2367873#M131203</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-15T01:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Swap Data in text file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Swap-Data-in-text-file/m-p/2367874#M131204</link>
      <description>Thanks. That helped me get the issue solved.</description>
      <pubDate>Thu, 16 Jul 2015 19:19:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Swap-Data-in-text-file/m-p/2367874#M131204</guid>
      <dc:creator>ptromblee</dc:creator>
      <dc:date>2015-07-16T19:19:35Z</dc:date>
    </item>
  </channel>
</rss>

