Skip to Content
author's profile photo
Former Member

Packed Decimals

We are setting up XI and have found out that the system to which it is going to interface contains fields of "packed decimals", known as computational3 fields.

I have been enlisted to write a java program to read EBCDIC files containing these fields and to write out the data in ASCII format.

Does anyone have suggestions on how to proceed?

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Oct 02, 2005 at 12:52 PM

    Very easy to do in ABAP.

    Check out current code of system (1100?)

    Know that EBCDIC is (1000).

    Read the record into the right structure and translate each field (you can use a loop). Comp-3 type fields will not be translated and appear as numbers with their right value.

    Check the format for your record by generating the structure in Cobol format.

    Enjoy

    Message was edited by: F.J. Brandelik

    Now if you need to do it in Java I would suggest you might want to be aware of the structure of the fields.

    You will then possibly need something of the type of java.nio.* and ASCII to EBCDIC/ EBCDIC to ASCII maps for the channel translation.

    You could just as well create the corresponding RFC for resolution in ABAP...or write the corresponding XSLT...

    Have fun.

    Message was edited by: F.J. Brandelik

    Add comment
    10|10000 characters needed characters exceeded