<?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 Unpacking Packed COMP-3/binary data from Mainframe in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/unpacking-packed-comp-3-binary-data-from-mainframe/m-p/2846230#M721322</link>
    <description>Hi All,&lt;BR /&gt;I have a Mainframe file which has the following format&lt;BR /&gt;&lt;BR /&gt;f1f2p1p2f3&lt;BR /&gt;where f1,f2,f3 are simple charater data&lt;BR /&gt;and p1,p2 are packed data in COMP-3 format&lt;BR /&gt;&lt;BR /&gt;My task is to get this file on Unix and unpack the packed  data using any C routine or anything else so that I can create a new file with the character fields remaining as it is and the packed data unpacked to ascii format.&lt;BR /&gt;&lt;BR /&gt;Can anyone help me with this.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Vinayak</description>
    <pubDate>Fri, 15 Nov 2002 23:08:32 GMT</pubDate>
    <dc:creator>Vinayak Shet</dc:creator>
    <dc:date>2002-11-15T23:08:32Z</dc:date>
    <item>
      <title>Unpacking Packed COMP-3/binary data from Mainframe</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unpacking-packed-comp-3-binary-data-from-mainframe/m-p/2846230#M721322</link>
      <description>Hi All,&lt;BR /&gt;I have a Mainframe file which has the following format&lt;BR /&gt;&lt;BR /&gt;f1f2p1p2f3&lt;BR /&gt;where f1,f2,f3 are simple charater data&lt;BR /&gt;and p1,p2 are packed data in COMP-3 format&lt;BR /&gt;&lt;BR /&gt;My task is to get this file on Unix and unpack the packed  data using any C routine or anything else so that I can create a new file with the character fields remaining as it is and the packed data unpacked to ascii format.&lt;BR /&gt;&lt;BR /&gt;Can anyone help me with this.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Vinayak</description>
      <pubDate>Fri, 15 Nov 2002 23:08:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unpacking-packed-comp-3-binary-data-from-mainframe/m-p/2846230#M721322</guid>
      <dc:creator>Vinayak Shet</dc:creator>
      <dc:date>2002-11-15T23:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: Unpacking Packed COMP-3/binary data from Mainframe</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unpacking-packed-comp-3-binary-data-from-mainframe/m-p/2846231#M721323</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;I'd unpack the file *on* the mainframe into a new file which is then ftp'd as character data to the Unix server.&lt;BR /&gt;&lt;BR /&gt;If necessary use 'dd' to unblock and convert EBCDIC to ASCII.  See the man pages for 'dd' for more information.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 15 Nov 2002 23:33:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unpacking-packed-comp-3-binary-data-from-mainframe/m-p/2846231#M721323</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2002-11-15T23:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: Unpacking Packed COMP-3/binary data from Mainframe</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unpacking-packed-comp-3-binary-data-from-mainframe/m-p/2846232#M721324</link>
      <description>We can't unpack the file on the mainframe side since we dont have a resource to do it. Thats the reason we  have to first bring the file on Unix and then unpack the packed comp-3 fields.&lt;BR /&gt;&lt;BR /&gt;Do you know of any routine in C whic will unpack the COMP-3 packed data.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Vinayak</description>
      <pubDate>Sat, 16 Nov 2002 19:48:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unpacking-packed-comp-3-binary-data-from-mainframe/m-p/2846232#M721324</guid>
      <dc:creator>Vinayak Shet</dc:creator>
      <dc:date>2002-11-16T19:48:14Z</dc:date>
    </item>
    <item>
      <title>Re: Unpacking Packed COMP-3/binary data from Mainframe</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unpacking-packed-comp-3-binary-data-from-mainframe/m-p/2846233#M721325</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Here is a link to a page that talks about handling COMP3 binary data.  The page agrees with what James said, that it is better to try to unpack the field on the mainframe side, but if you can't do that they have some sample Java code to try to unpack a COMP3 field.  &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.room42.com/store/computer_center/packed_decimal.shtml" target="_blank"&gt;http://www.room42.com/store/computer_center/packed_decimal.shtml&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Good luck!&lt;BR /&gt;&lt;BR /&gt;JP&lt;BR /&gt;</description>
      <pubDate>Sat, 16 Nov 2002 21:00:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unpacking-packed-comp-3-binary-data-from-mainframe/m-p/2846233#M721325</guid>
      <dc:creator>John Poff</dc:creator>
      <dc:date>2002-11-16T21:00:53Z</dc:date>
    </item>
  </channel>
</rss>

