Problem reading packed-decimal data

Hi,

I have hit a wall in one of my project wherein we are dealing with Packed-Decimal data sent by a Mainframe (COBOL COMP-3) application.

I tried using the PSUtilities.format:convertPackedDecimalToString and MainframeSampleServices.Conversion.convertPackedDecimal:ConvertPackedDecimalToString

but both of these services are designed to read only Integers, and in my case the packed number might be a 11 -digit number which these services are unable to handle and are resulting a negative number.

I tried tweaking the service so that they can handle a long, but its not working as expected.

Any help is highly appreciated?

Thanks

Please see these thread discussions,it might give you some clue…

[U][COLOR=#22229c][URL=“wmusers.com”]wmusers.com

[U][COLOR=#22229c][URL=“wmusers.com”]wmusers.com

[U][COLOR=#22229c][URL=“wmusers.com”]wmusers.com

There is some java API available for handling BigDecimal etc…you may check it.

HTH,
RMG