Chapter Contents

Previous

Next
SAS Companion for the CMS Environment

How Character Values Are Stored

Alphanumeric characters are stored in a computer by using a character-encoding system. The two single-byte character-encoding systems that are most widely used in data processing are ASCII and EBCDIC. IBM mainframe computers use the EBCDIC system, which can represent 256 different characters. Each character is assigned a unique hexadecimal value between 00 and FF.

EBCDIC Code: Commonly Used Characters shows the EBCDIC code for commonly used characters.

EBCDIC Code: Commonly Used Characters
Hex Character Hex Character Hex Character Hex Character
'40'x space '95'x n 'C4'x D 'E3'x T
'4B'x . '96'x o 'C5'x E 'E4'x U
'4E'x + '97'x p 'C6'x F 'E5'x V
'60'x - '98'x q 'C7'x G 'E6'x W
'81'x a '99'x r 'C8'x H 'E7'x X
'82'x b 'A2'x s 'C9'x I 'E8'x Y
'83'x c 'A3'x t 'D0'x } 'E9'x Z
'84'x d 'A4'x u 'D1'x J 'F0'x 0
'85'x e 'A5'x v 'D2'x K 'F1'x 1
'86'x f 'A6'x w 'D3'x L 'F2'x 2
'87'x g 'A7'x x 'D4'x M 'F3'x 3
'88'x h 'A8'x y 'D5'x N 'F4'x 4
'89'x i 'A9'x z 'D6'x O 'F5'x 5
'91'x j 'C0'x { 'D7'x P 'F6'x 6
'92'x k 'C1'x A 'D8'x Q 'F7'x 7
'93'x l 'C2'x B 'D9'x R 'F8'x 8
'94'x m 'C3'x C 'E2'x S 'F9'x 9


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.