CL Command Reference - CRTTBL
CL Command List > CRTTBL Reference
Description:
The Create Table (CRTTBL) command creates a named table. The table can be used for the translation of data that is moved between the system and a device. The table can also be used to specify an alternate collating sequence or to specify field translation functions.
You can create a table by prompting for the source information, or by specifying a source member.
To create a table using prompting support, specify *PROMPT on the SRCFILE parameter. A display is shown allowing you to view and change the table values and a new table is created based on the values chosen on the display.
To create a *CVT table using a source member, you must specify a source member that contains 8 records. Each record in this member must contain 64 hexadecimal characters (characters after position 64 are not used). This input (512 hexadecimal characters) is converted and stored internally as 256 bytes by the CRTTBL command.
The value you specify for a position within the source member is the same value that is returned by QDCXLATE (or other system program) whenever that position is encountered.
For example, if you specify ¡åC0C1C2C3C4C5C6...¡¯¡¯ as the first part of record 1 in the source, then a hexadecimal ¡åC0¡å is returned when given a hexadecimal ¡å00¡å, a hexadecimal ¡åC1¡å is returned when given a hexadecimal ¡å01¡å and so on.
To create a *UCSSRTSEQ table using a source member, you must specify a source member that contains the following layout of information.
1. column 1-4 = Hex code point to be sorted
2. column 6-10 = Weight of this code point as a decimal number
3. column 11-80 = not used, can contain such things as comments.
Examples:
CRTTBL TBL(SCRAMTBL) SRCFILE(USERTABLES) SRCMBR(SCRAMBLE)
TEXT(¡¯Translate table for scrambling text characters¡¯)
This command creates a table named SCRAMTBL and (by default) stores it in the current library. The source file named USERTABLES contains the source records used when the table is created; the name of the source file member is SCRAMBLE. The TEXT parameter describes this table as being used as a translate table for scrambling text characters.