on 09-20-2005 8:51 PM
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?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.