<?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: Data Mapper: COBOL Copybook: ebcdic file - Invalid Packed Decimal Error in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Data-Mapper-COBOL-Copybook-ebcdic-file-Invalid-Packed-Decimal/m-p/2215047#M11620</link>
    <description>&lt;P&gt;This error usually comes over when a field has been defined incorrectly.  &lt;/P&gt;&lt;P&gt;In your case you have defined the field CUST-ID as PIC 9(5) COMP-3 in the structure (based on Copybook), however the data in the input file is not conforming to this definition.  The data in input file is showing : custId is either 001, 002 or 003 etc. &lt;/P&gt;&lt;P&gt;Now, 3 digits in EBCDIC can be stored using just 2 bytes. So,  PIC 9(2) COMP-3, should suffice here. &lt;/P&gt;&lt;P&gt;Please update the copybook definition for the field and I believe, you should be able to get through this error. &lt;/P&gt;</description>
    <pubDate>Tue, 14 Jun 2022 00:46:24 GMT</pubDate>
    <dc:creator>Tarun2</dc:creator>
    <dc:date>2022-06-14T00:46:24Z</dc:date>
    <item>
      <title>Data Mapper: COBOL Copybook: ebcdic file - Invalid Packed Decimal Error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Data-Mapper-COBOL-Copybook-ebcdic-file-Invalid-Packed-Decimal/m-p/2215046#M11619</link>
      <description>&lt;P&gt;I am trying to view the ebcdic file by importing COBOL copybook into Structures in Data Mapper.&lt;/P&gt; 
&lt;P&gt;When i click Sample records(Imported the ebcdic file) , I am getting this error&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;1: Error - COBOL reader has encountered a fatal error (1504)&lt;BR /&gt;Cobol has returned this error while reading input data: At offset 143 (0x8F), field /CUST-RECORD-REF/CUST-ID, failed conversion with error: Invalid Packed decimal. Sign nibble 0x0 at position 2 is invalid. Cobol value was 0x250000. Schema was {"type":"string","logicalType":"decimal","talend.max.len":"3","talend.cobol.decimal.type":"PACKED","talend.min.len":"3","precision":5,"scale":0}&lt;BR /&gt;Element: Structures/cust-record-copybook/Reference/CUST-RECORD-REF.xml - Element: /CUST-RECORD-REF/CUST-ID&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Copybook and the ebcdic files are in the below path&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://github.com/kenkrupa-ml/mainframe-ml-sample" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/kenkrupa-ml/mainframe-ml-sample&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks in Advance.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:10:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Data-Mapper-COBOL-Copybook-ebcdic-file-Invalid-Packed-Decimal/m-p/2215046#M11619</guid>
      <dc:creator>venkatadilip</dc:creator>
      <dc:date>2024-11-16T02:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: Data Mapper: COBOL Copybook: ebcdic file - Invalid Packed Decimal Error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Data-Mapper-COBOL-Copybook-ebcdic-file-Invalid-Packed-Decimal/m-p/2215047#M11620</link>
      <description>&lt;P&gt;This error usually comes over when a field has been defined incorrectly.  &lt;/P&gt;&lt;P&gt;In your case you have defined the field CUST-ID as PIC 9(5) COMP-3 in the structure (based on Copybook), however the data in the input file is not conforming to this definition.  The data in input file is showing : custId is either 001, 002 or 003 etc. &lt;/P&gt;&lt;P&gt;Now, 3 digits in EBCDIC can be stored using just 2 bytes. So,  PIC 9(2) COMP-3, should suffice here. &lt;/P&gt;&lt;P&gt;Please update the copybook definition for the field and I believe, you should be able to get through this error. &lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 00:46:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Data-Mapper-COBOL-Copybook-ebcdic-file-Invalid-Packed-Decimal/m-p/2215047#M11620</guid>
      <dc:creator>Tarun2</dc:creator>
      <dc:date>2022-06-14T00:46:24Z</dc:date>
    </item>
  </channel>
</rss>

