z/OS ISPF Planning and Customizing
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Collating sequence translation table

z/OS ISPF Planning and Customizing
GC19-3623-00

The collating sequence translation table (TTCOL in the example shown in Table 1) contains the sort order of the 256 table entries, represented in hexadecimal (0-255). This table is used by TBSORT/TBADD services when the sort type is ‘C’, and by the ISPF Edit SORT command. See z/OS ISPF Dialog Developer's Guide and Reference for further information.

Example 1: If you want an ‘A’ to sort before a ‘B’, as shown in Table 1, the hexadecimal position for an ‘A’ will contain a value that is less than the sort value found in the hexadecimal position for ‘B’. Similarly, to sort a blank (X'40') before an ‘A’, the hexadecimal table position for a blank will contain a sort value less than that of the ‘A’.

Example 2: If you want a blank (X'40') to sort last (not shown here), set the hexadecimal table position for a blank (X'40') to X'FF'.

Table 1 shows an example of how the table would look if you wanted to sort strictly on the basis of hexadecimal values (for example, ‘a’ before ‘b’, ‘A’ before ‘A’).

Table 1. Collating sequence translation table example
Table Hexadecimal Code Position
TTCOL
DC X'0001020304050607'
DC X'08090A0B0C0D0E0F'
DC X'1011121314151617'
          ...
DC X'78797A7B7C7D7E7F'
DC X'8081828384858687'
          ...
DC X'E8E9EAEBECEDEEEF'
DC X'F0F1F2F3F4F5F6F7'
DC X'F8F9FAFBFCFDFEFF'
(X'00' to X'07')
(X'08' to X'0F')
(X'10' to X'17')

(X'78' to X'7F')
(X'80' to X'87')

(X'E8' to X'EF')
(X'F0' to X'F7')
(X'F8' to X'FF')

If you want to sort strictly on the basis of hexadecimal codes (as ISPF does for English), set the pointer to the collating sequence table (COLP) to zero. In the case of a pure hexadecimal sort, ISPF does not require a table.

After you supply the values for these six tables, assemble and link-edit the module. After the load module is created, go to the next step.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014