cancel
Showing results for 
Search instead for 
Did you mean: 

Packed Decimals

Former Member
0 Kudos

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?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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