TechTalk: What the Hex Is This Character?

General
Typography
  • Smaller Small Medium Big Bigger
  • Default Helvetica Segoe Georgia Times

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) 
BLOG COMMENTS POWERED BY DISQUS

LATEST COMMENTS

Support MC Press Online

$0.00 Raised:
$