Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
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.
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
TBL | Table | Qualified object name | Required, Positional 1 |
Qualifier 1: Table | Name | ||
Qualifier 2: Library | Name, *CURLIB | ||
SRCFILE | Source file | Single values: *PROMPT Other values: Qualified object name |
Optional, Positional 2 |
Qualifier 1: Source file | Name, QTBLSRC | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
SRCMBR | Source member | Name, *TBL | Optional, Positional 3 |
TBLTYPE | Table type | *CVT, *SRTSEQ, *UCSSRTSEQ | Optional |
BASETBL | Basing table | Single values: *HEX Other values: Qualified object name |
Optional |
Qualifier 1: Basing table | Name | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
BASESRTSEQ | Basing sort sequence | Single values: *LANGIDSHR, *HEX, *JOB, *LANGIDUNQ Other values: Qualified object name |
Optional |
Qualifier 1: Basing sort sequence | Name | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
BASELANGID | Basing language ID | Character value, *JOB | Optional |
CCSID | Coded character set ID | 1-65533, *JOB, *HEX, 65535 | Optional |
TEXT | Text 'description' | Character value, *BLANK | Optional |
AUT | Authority | Name, *LIBCRTAUT, *CHANGE, *ALL, *USE, *EXCLUDE | Optional |
Top |
Specifies the library name and table name of the table being created.
This is a required parameter.
The possible library values are:
The possible values are:
Top |
Specifies the qualified name of the source file containing the description of the table being created or that prompting support is to be used.
The possible values are:
The possible library values are:
Top |
Specifies the name of the source file member containing the description of the table being created.
The possible values are:
generic*-table-name Specify the generic name of the table. A generic name is a character string of one or more characters followed by an asterisk (*); for example, ABC*. If a generic name is specified, then all tables with names that begin with the generic name, and for which the user has authority, are shown. If an asterisk is not included with the generic (prefix) name, the system assumes it to be the complete table name.
Top |
Specifies the type of table object to be created.
The possible values are:
Top |
Specifies the base table to be used for prompting support when creating a conversion table.
The possible values are:
The name of the table can be qualified by one of the following library values:
Top |
Specifies the base table to be used for prompting support when creating a sort sequence table.
The possible values are:
The name of the table can be qualified by one of the following library values:
Top |
Specifies the base language used for prompting support when creating a sort sequence table.
The possible values are:
Top |
Specifies the coded character set ID (CCSID) in which to store the sort sequence table information.
The possible values are:
Top |
Specifies the text that briefly describes the object.
The possible values are:
Top |
Specifies the authority you are giving to users who do not have specific authority for the object, who are not on an authorization list, and whose group profile or supplemental group profiles do not have specific authority for the object.
Top |
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.
Top |
*ESCAPE Messages
Top |