Q: I'm having trouble getting the hex value for an apostrophe on the AS/400. How do I find the hex representation of a character?
A: The hex representation for an apostrophe on the AS/400 is 7D. Here are a couple of ways you can find the hex value of a character.
1. From a sign-on screen, press Alt Test. Choose option 1 (Display Verification), and then option 2 (Displayable characters). This shows you a table of all displayable characters.
2. Create a one-byte character data area in QTEMP, specifying the character whose hex value you want to know as the initial value. Then display the data area in hex. For example:
CRTDTAARA DTAARA(QTEMP/XYZ) + TYPE(*CHAR) LEN(1) + VALUE('''') DSPDTAARA DTAARA(QTEMP/XYZ) + OUTFMT(*HEX)
LATEST COMMENTS
MC Press Online