I've this command that converts a character EBCDIC to Hexadecimal on my Iseries (AS400) and it works perfect.
sprintf((char*)(codeHex),"%02X", input[loop]);
Now, I would like to do the opposite command, I mean.. from an hexadecimal code, convert it to a character EBCDIC, and move it to a string char. How can I do it?
Now the info that I recieve has this format:
char input[300] ="0x004C0x004F0x00430x004B0x00450x00440x0000...";
sprintf((char*)(VariableCharacterEBCDIC),"?..", input[loop]);
Regards,