Retrieving string from DB2 (Z/OS) (JDBC) that does contain packed decimal value.
When I am trying to get bytes using String.getBytes("Cp1047"), I am getting correct bytes for all Excpet for 15 and 25. Rather it is resulting in swapped values for these, i.e, it is getting 25 for 15 and vice versa.
What could be the wrong? Or should I read bytes directly from ResultSet using ResultSet.getBinaryStream("COLUMN") ?
Or do 15 and 25 have some special meaning on the Java Platform. Thanks in advance.