<?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] Conditional parsing of a positional file into Oracle tables in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Conditional-parsing-of-a-positional-file-into-Oracle/m-p/2370458#M133496</link>
    <description>if i am correct then you have multi-schema positional file and you want to load it into oracle tables based on one column condition. it is possible using.&amp;nbsp;&lt;A href="https://help.talend.com/search/all?query=tFileInputMSPositional&amp;amp;content-lang=en" target="_blank" rel="nofollow noopener noreferrer"&gt;tFileInputMSPositional&lt;/A&gt;&amp;nbsp;component.&amp;nbsp;&lt;BR /&gt;if you post some sample rows from your input and required output. community can suggest you best answers.</description>
    <pubDate>Thu, 31 Jul 2014 08:14:26 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-07-31T08:14:26Z</dc:date>
    <item>
      <title>[resolved] Conditional parsing of a positional file into Oracle tables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Conditional-parsing-of-a-positional-file-into-Oracle/m-p/2370457#M133495</link>
      <description>I've recently started using Talend for Data Integration and had a question regarding how to tackle a specific&amp;nbsp;issue.
&lt;BR /&gt;I'm attempting to load a positional file into a set of Oracle tables.&amp;nbsp; Each row of positional data contains two separate character values that determine the type of the row.&amp;nbsp; The type of the row determines the positional placement for each of the expected columns.&amp;nbsp;
&lt;BR /&gt;To reiterate, the way you must parse each line of the positional file is dependent on two fields of data contained within the row itself. &amp;nbsp;
&lt;BR /&gt;In order to compensate, I had to strip out the two fields, and based on their values, copy the entire row&amp;nbsp;of text to the appropriate output file containing rows of that type.&amp;nbsp; Once all the rows of the original file were divided by type into their respective files, I could then parse each file, knowing that within each file, the positional data placement would be the same.&amp;nbsp; This process works, but is extremely slow, resulting in a complex, messy&amp;nbsp;solution that produces a lot of overhead data that would need to be cleaned up after the load.&amp;nbsp;
&lt;BR /&gt;A few questions come to mind.&amp;nbsp; Does Talend support using .ctl files to parse a file into a table, as would SQLLDR?&amp;nbsp; Is there any support for conditional line by line parsing of a positional file in Talend without needing to divide the original file?&amp;nbsp; Are there any other alternatives that may work?&amp;nbsp;
&lt;BR /&gt;Any advice is appreciated.</description>
      <pubDate>Wed, 30 Jul 2014 16:43:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Conditional-parsing-of-a-positional-file-into-Oracle/m-p/2370457#M133495</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2014-07-30T16:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Conditional parsing of a positional file into Oracle tables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Conditional-parsing-of-a-positional-file-into-Oracle/m-p/2370458#M133496</link>
      <description>if i am correct then you have multi-schema positional file and you want to load it into oracle tables based on one column condition. it is possible using.&amp;nbsp;&lt;A href="https://help.talend.com/search/all?query=tFileInputMSPositional&amp;amp;content-lang=en" target="_blank" rel="nofollow noopener noreferrer"&gt;tFileInputMSPositional&lt;/A&gt;&amp;nbsp;component.&amp;nbsp;&lt;BR /&gt;if you post some sample rows from your input and required output. community can suggest you best answers.</description>
      <pubDate>Thu, 31 Jul 2014 08:14:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Conditional-parsing-of-a-positional-file-into-Oracle/m-p/2370458#M133496</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-31T08:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Conditional parsing of a positional file into Oracle tables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Conditional-parsing-of-a-positional-file-into-Oracle/m-p/2370459#M133497</link>
      <description>Unfortunately, I am not at liberty to show a sample of the data we intend to load.&amp;nbsp; Besides, without the associated documentation, the data raw would be exceedingly difficult to read.&amp;nbsp; However, I can give you more details as to the general structure.
&lt;BR /&gt;The original datafile contains&amp;nbsp;hundreds of thousands of&amp;nbsp;rows of positional data.&amp;nbsp; Each row is assumed to have the same character length.&amp;nbsp; Character position 5 designates the category of the row.&amp;nbsp; The position of the subcategory changes depending on the category value.&amp;nbsp;
&lt;BR /&gt;For instance, if the category is "A", then the subcategory would always&amp;nbsp;be located at character position 13. If the category is "P", then the subcategory would always be located at position 6.
&lt;BR /&gt;&amp;nbsp;
&lt;BR /&gt;Much like how the category value determines the subcategory placement, the category and subcategory values together also determine how the rest of the columns are positioned in the row.&amp;nbsp;
&lt;BR /&gt;In order to determine which table the row belongs to and which character positions refer to which columns, you would have to:
&lt;BR /&gt;1. Determine the position of the subcategory value based on the category value at position 5
&lt;BR /&gt;2. Determine the position of the rest of the columns based on both the category and subcategory values.
&lt;BR /&gt;I hope this helps.&amp;nbsp; Thanks for the tip.&amp;nbsp; I'll see if tFileInputMSPositional has what I need.</description>
      <pubDate>Thu, 31 Jul 2014 14:36:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Conditional-parsing-of-a-positional-file-into-Oracle/m-p/2370459#M133497</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-31T14:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Conditional parsing of a positional file into Oracle tables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Conditional-parsing-of-a-positional-file-into-Oracle/m-p/2370460#M133498</link>
      <description>Hi,&lt;BR /&gt;Have you tried to create metadata for your input file? If you can create a standard metadata, then i think, this is possible.. Please let me know after creating the metadata...&lt;BR /&gt;Can you create a look-up table for category and subcategory, based on this we can try to perform some logical operations...during the data flow.&lt;BR /&gt;Thanks&lt;BR /&gt;Vaibhav</description>
      <pubDate>Thu, 31 Jul 2014 14:50:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Conditional-parsing-of-a-positional-file-into-Oracle/m-p/2370460#M133498</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-31T14:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Conditional parsing of a positional file into Oracle tables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Conditional-parsing-of-a-positional-file-into-Oracle/m-p/2370461#M133499</link>
      <description>I have tried to create a positional file metadata object for my input file.&amp;nbsp; The issue is that the position of the subcategory value changes based on category value.&amp;nbsp; Let me clarify by showing you the following two rows:&lt;BR /&gt;XXXXARXXXXXXXXXXXXX&lt;BR /&gt;XXXXPXXXXXXXDXXXXXX&lt;BR /&gt;At position 5 for both columns, you'll find a character value for the category that the row belongs to.&amp;nbsp; That character value determines the subcategory placement.&amp;nbsp; In the first row, the category value is "A."&amp;nbsp; All rows with the category of "A" will have its subcategory at position 6.&amp;nbsp; In this case, the subcategory is R.&amp;nbsp; For the second row, the category is "P."&amp;nbsp; All rows with the category of "P" will have a subcategory at position 13.&amp;nbsp; In this case, "D."&lt;BR /&gt;Both the category and subcategory values together determine how the rest of the&amp;nbsp;characters (marked by X's in the example) are parsed.&amp;nbsp;&lt;BR /&gt;Maybe I misunderstood what you meant by creating metadata, but when I create&amp;nbsp;a positional file metadata object, it seems to assume that my column positions will be the same for every row, which isn't the case with my data.&amp;nbsp; I could create a positional file object for one type of row, but it wouldn't be compatible with all the other types of rows&amp;nbsp;within the same file.&lt;BR /&gt;Also, while my positional&amp;nbsp;file does&amp;nbsp;use multiple schemas,&amp;nbsp;tFileInputMSPositional components seem to assume that there is only one&amp;nbsp;field that determines which schema to use.&amp;nbsp; In my case, it is two fields.&amp;nbsp; One is always at the same position.&amp;nbsp; The other is at a variable position that is dependent on the value of the first.&amp;nbsp;&lt;BR /&gt;The lookup table idea sounds interesting.&amp;nbsp; How could that be done in Talend?</description>
      <pubDate>Thu, 31 Jul 2014 15:12:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Conditional-parsing-of-a-positional-file-into-Oracle/m-p/2370461#M133499</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-31T15:12:00Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Conditional parsing of a positional file into Oracle tables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Conditional-parsing-of-a-positional-file-into-Oracle/m-p/2370462#M133500</link>
      <description>&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;The issue is that the position of the subcategory value changes based on category value.&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;&lt;FONT size="1"&gt;&amp;gt;&amp;gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;&lt;FONT size="1"&gt;This is not a problem... based on the lookup, you can retrieve that sub category...&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;&lt;FONT size="1"&gt;Lookup is like a simple table with the category and subcategory values, which will be loaded before execution of the job and used at appropriate places.&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;&lt;FONT size="1"&gt;Vaibhav&lt;/FONT&gt;&lt;/FONT&gt;</description>
      <pubDate>Thu, 31 Jul 2014 16:08:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Conditional-parsing-of-a-positional-file-into-Oracle/m-p/2370462#M133500</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-31T16:08:58Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Conditional parsing of a positional file into Oracle tables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Conditional-parsing-of-a-positional-file-into-Oracle/m-p/2370463#M133501</link>
      <description>This would work, but is this something that can be created in Talend or must I implement the lookup table as a separate database table?&amp;nbsp;</description>
      <pubDate>Thu, 31 Jul 2014 17:43:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Conditional-parsing-of-a-positional-file-into-Oracle/m-p/2370463#M133501</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-31T17:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Conditional parsing of a positional file into Oracle tables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Conditional-parsing-of-a-positional-file-into-Oracle/m-p/2370464#M133502</link>
      <description>This would be great if the solution works...&lt;BR /&gt;Lookup could be within talend using tfixedflow or a flat file or a database table etc...&lt;BR /&gt;Vaibhav</description>
      <pubDate>Fri, 01 Aug 2014 09:00:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Conditional-parsing-of-a-positional-file-into-Oracle/m-p/2370464#M133502</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-08-01T09:00:24Z</dc:date>
    </item>
  </channel>
</rss>

