[Solved] Need Java Code/Logic to extract COMP. field from EBCDIC file
I do not use Java, but I will try to explain what is happening. The value 8188 is 0x1ff8 in big-endian hex. When your program is run the result is actually 8188 – 65536 = -57348. That is why you got the result you did. Because the input is big-endian binary, only the first bit … Read more