Testtube Posted July 17, 2008 Report Posted July 17, 2008 0x56 0x4f 0x4c What format is that? Is that hex? If so how do i convert it into long form like Decimal?
Newbie S Posted July 17, 2008 Report Posted July 17, 2008 You need to have the file transfered in EBCDIC to you onAIX. You then need to write a program in the language of your choice thatconverts the non zoned decimal fields to ASCII and leave the zoned decimalfields alone since they will already have the right stuff in them..If youget the file as ASCII you are snookered because the EBCDIC to ASCII willtranslate the wrong values on you.. AIX Ulities
»Lynx Posted July 17, 2008 Report Posted July 17, 2008 Where exactly are you getting them packets from? -Lynx
»Blocks Posted July 17, 2008 Report Posted July 17, 2008 (edited) 0x56 0x4f 0x4c What format is that? Is that hex? If so how do i convert it into long form like Decimal?Yes, the "0x" prefix typically means hexadecimal. You convert it to a decimal number just like you would convert any other base 16 number in middle school. Oh, right then. 0x56 = 5*16 + 6 = 860x4F = 4*16 + 15 = 790x4C = 4*16 + 13 = 77 Though depending on the application, the binary representation might be more useful. 0x56 = 0b010101100x4F = 0b010011110x4C = 0b01001101 Edited July 17, 2008 by Blocks
Recommended Posts