HPlogo SORT-MERGE/XL General User's Guide > Chapter 3 Using SORT/XL Interactively

Using >SHOW to Display the Translation Table

MPE documents

Complete PDF
Table of Contents
Index
Glossary

Use the >SHOW command to display the translation table on your terminal screen or have it printed on the system printer.

To display the standard ASCII translation table on the terminal screen, use the TABLE parameter of the >SHOW command. The translation table follows the standard 128-character ASCII sequence. It shows the ordinal value for each character. For example, the numeric value for F is 70 (decimal). To generate the ASCII translation table, enter the following commands:

  :SORT

  HP32214A.01.00  SORT/3000 WED, JUN  3, 1987,  9:20 AM
  (C) HEWLETT-PACKARD CO. 1986

  >DATA IS ASCII, SEQUENCE IS ASCII
  >SHOW TABLE

  TABLE OF ORDINAL VALUE ASSIGNED TO EACH CHARACTER.
    |    0 |    1 |    2 |    3 |    4 |    5 |    6 |    7 |    8 |    9
----+------+------+------+------+------+------+------+------+------+------ 
  0 |    0 |    1 |    2 |    3 |    4 |    5 |    6 |    7 |    8 |    9
  1 |   10 |   11 |   12 |   13 |   14 |   15 |   16 |   17 |   18 |   19
  2 |   20 |   21 |   22 |   23 |   24 |   25 |   26 |   27 |   28 |   29
  3 |   30 |   31 |sp=32 |!= 33 |"= 34 |#= 35 |$= 36 |%= 36 |&= 38 |'= 39
  4 |(= 40 |)= 41 |*= 42 |+= 43 |,= 44 |-= 45 |.= 46 |/= 47 |0= 48 |1= 49
  5 |2= 50 |3= 51 |4= 52 |5= 53 |6= 54 |7= 55 |8= 56 |9= 57 |:= 58 |;= 59
  6 |<= 60 |== 61 |>= 62 |?= 63 |@= 64 |A= 65 |B= 66 |C= 67 |D= 68 |E= 69
  7 |F= 70 |G= 71 |H= 72 |I= 73 |J= 74 |K= 75 |L= 76 |M= 77 |N= 78 |O= 79
  8 |P= 80 |Q= 81 |R= 82 |S= 83 |T= 84 |U= 85 |V= 86 |W= 87 |X= 88 |Y= 89
  9 |Z= 90 |[= 91 |\= 92 |]= 93 |^= 94 |_= 95 |`= 96 |a= 97 |b= 98 |c= 99
 10 |d=100 |e=101 |f=102 |g=103 |h=104 |i=105 |j=106 |k=107 |l=108 |m=109
 11 |n=110 |o=111 |p=112 |q=113 |r=114 |s=115 |t=116 |u=117 |v=118 |w=119
 12 |x=120 |y=121 |z=122 |{=123 ||=124 |}=125 |~=126 | =127 |  128 |  129
 13 |  130 |  131 |  132 |  133 |  134 |  135 |  136 |  137 |  138 |  139
 14 |  140 |  141 |  142 |  143 |  144 |  145 |  146 |  147 |  148 |  149
 15 |  150 |  151 |  152 |  153 |  154 |  155 |  156 |  157 |  158 |  159
 16 |  160 |  161 |  162 |  163 |  164 |  165 |  166 |  167 |  168 |  169
 17 |  170 |  171 |  172 |  173 |  174 |  175 |  176 |  177 |  178 |  179
 18 |  180 |  181 |  182 |  183 |  184 |  185 |  186 |  187 |  188 |  189
 19 |  190 |  191 |  192 |  193 |  194 |  195 |  196 |  197 |  198 |  199
 20 |  200 |  201 |  202 |  203 |  204 |  205 |  206 |  207 |  208 |  209
 21 |  210 |  211 |  212 |  213 |  214 |  215 |  216 |  217 |  218 |  219
 22 |  220 |  221 |  222 |  223 |  224 |  225 |  226 |  227 |  228 |  229
 23 |  230 |  231 |  232 |  233 |  234 |  235 |  236 |  237 |  238 |  239
 24 |  240 |  241 |  242 |  243 |  244 |  245 |  246 |  247 |  248 |  249
 25 |  250 |  251 |  252 |  253 |  254 |  255 |

WHEN PASSED TO SORTINIT, THE TABLE ABOVE IS PRECEDED BY TWO BYTES. THESE FIRST TWO BYTES CONTAIN A FLAG BYTE OF %000 AND A LENGTH BYTE OF %377 RESPECTIVELY.

This translation table display is followed by a display of the contents of the ALTSEQ array in decimal format and octal word format. This information is not shown here as it is intended for programmatic use. Refer to the SORT-MERGE/XL Programmer's Guide (32650-90080) for additional information.

To receive a copy of the standard ASCII translation table from the printer, use the OFFLINE parameter of the >SHOW command, as follows:

  >DATA IS ASCII, SEQUENCE IS ASCII
  >SHOW TABLE, OFFLINE

For additional information on translation tables refer to the >SHOW command in Chapter 6.




Using >SHOW to Display the Collating Sequence


Defining Your Own Collating Sequence