<?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: Validate the header and footer in positional file in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Validate-the-header-and-footer-in-positional-file/m-p/2367754#M131098</link>
    <description>First sub job checks the structure and the second subjob reads the data&lt;BR /&gt;tFileInputPositional -&amp;gt; tJavaRow (for checks and in case of errors throw an Exception)&lt;BR /&gt;OnSubjobOk&lt;BR /&gt;tFileInputPositional -&amp;gt; &amp;nbsp;.....</description>
    <pubDate>Thu, 26 May 2016 19:09:37 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-05-26T19:09:37Z</dc:date>
    <item>
      <title>Validate the header and footer in positional file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Validate-the-header-and-footer-in-positional-file/m-p/2367751#M131095</link>
      <description>&lt;P&gt;Hello All,&lt;BR /&gt;I have positional based input file and need to do validation on the header and footer.&lt;BR /&gt;Name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;salary&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; date&lt;BR /&gt;abc&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;5000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;01/12/2016&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;def&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 01/12/2016&lt;BR /&gt;hij&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 01/12/2016&lt;BR /&gt;&lt;BR /&gt;klm&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;8000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;01/12/2016&lt;BR /&gt;4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 26000&lt;BR /&gt;Header Validation : First column name should be name and second column name should be salary. In case of mismatch the file should not be processed and job should get failed. In case header validation success it has to process all the records.&lt;BR /&gt;Footer Validation: it should have the no of rows processed and total amount of the salary. Could you please someone guide me?&lt;BR /&gt;it is critical. Please do help ASAP.&lt;BR /&gt;thanks a lot&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2016 18:08:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Validate-the-header-and-footer-in-positional-file/m-p/2367751#M131095</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-26T18:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: Validate the header and footer in positional file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Validate-the-header-and-footer-in-positional-file/m-p/2367752#M131096</link>
      <description>I would read the first line with the schema of the positional file (except changing all columns to String type) and check them against the expected column names. Or you save the header line as row in your job and read the header line from the job also as one line and compare directly both Strings.&amp;nbsp;</description>
      <pubDate>Thu, 26 May 2016 18:19:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Validate-the-header-and-footer-in-positional-file/m-p/2367752#M131096</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-26T18:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: Validate the header and footer in positional file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Validate-the-header-and-footer-in-positional-file/m-p/2367753#M131097</link>
      <description>I am using tFileInputPositional to read the first record(by setting the limit to 1)&amp;nbsp;and passing the row tJavaRow. In the tJavaRow I am validating like input_row.name.equals("Name") and input_row.salary.equals("Salary"). But I don't know how to call another job to process body of the file if above conditions returns true. Could you please guide me on this? Some simple design would be great help. thanks much</description>
      <pubDate>Thu, 26 May 2016 18:33:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Validate-the-header-and-footer-in-positional-file/m-p/2367753#M131097</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-26T18:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: Validate the header and footer in positional file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Validate-the-header-and-footer-in-positional-file/m-p/2367754#M131098</link>
      <description>First sub job checks the structure and the second subjob reads the data&lt;BR /&gt;tFileInputPositional -&amp;gt; tJavaRow (for checks and in case of errors throw an Exception)&lt;BR /&gt;OnSubjobOk&lt;BR /&gt;tFileInputPositional -&amp;gt; &amp;nbsp;.....</description>
      <pubDate>Thu, 26 May 2016 19:09:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Validate-the-header-and-footer-in-positional-file/m-p/2367754#M131098</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-26T19:09:37Z</dc:date>
    </item>
    <item>
      <title>Re: Validate the header and footer in positional file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Validate-the-header-and-footer-in-positional-file/m-p/2367755#M131099</link>
      <description>thank you so much. it works.</description>
      <pubDate>Tue, 31 May 2016 04:34:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Validate-the-header-and-footer-in-positional-file/m-p/2367755#M131099</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-31T04:34:05Z</dc:date>
    </item>
  </channel>
</rss>

