Relative Content

Tag Archive for javaebcdicjt400

IBM Java Toolkit (jt400) EBCDIC signed number

AS400ZonedDecimal converter = new AS400ZonedDecimal(3, 0); byte[] convertedBytesArray = converter.toBytes(new BigDecimal(“-120″)); I can get characters ’12}’ from byte array, and that’s right. but when I try to use BigDecimal(“120”) to convert, then I got characters ‘120’ but I want to get ’12{‘. How to use AS400ZonedDecimal to convert BigDecimal positive to EBCDIC with sign ? […]