HP RPG/iX Utilities Reference Manual (30318-90006)

C- 109
C Appendix C DATA INFORMATION
Collating Sequence Table
The Collating Sequence Table brings together comparative information concerning data used in sort jobs.
It includes the ASCII and EBCDIC collating sequences in decimal, octal, hexidecimal, and binary
representations. It gives the character (graphic) or control equivalents for both ASCII and EBCDIC.
The relative position of alphabetic and numeric characters in the sorting sequence is shown in the right
hand columns. This information will be helpful to those users who have experience with systems based on
the EBCDIC collating sequence. A major difference between the two systems is the relative position of
alphabetic and numeric characters in the collating sequence. When alphabetic characters have a higher
place in the collating sequence than numeric characters, this can effect compare and matching field
operations. Using Alternate Collating Sequence, it is possible to reverse this if the user prefers EBCDIC
sequence..
COLLATING SEQUENCE
ALPHA/CONTROL
CHARACTER
NUMERIC VALUE
Dec Oct Hex Binary ASCII EBCDIC ASCII EBCDIC
0 000 00 0000 0000 NUL NUL
1 001 01 0000 0001 SOH SOH
2 002 02 0000 0010 STX STX
3 003 03 0000 0011 ETX ETX
4 004 04 0000 0100 EOT PF
5 005 05 0000 0101 ENQ HT
6 006 06 0000 0110 ACK LC
7 007 07 0000 0111 BEL DEL
8 010 08 0000 1000 BS
9 011 09 0000 1001 HT
10 012 0A 0000 1010 LF SMM
11 013 0B 0000 1011 VT VT
12 014 0C 0000 1100 FF FF
13 015 0D 0000 1101 CR CR
14 016 0E 0000 1110 SO SO
15 017 0F 0000 1111 SI SI
16 020 10 0001 0000 DLE DLE