CRTTBL (Create Table) syntax diagram
Job: B,I Pgm: B,I REXX: B,I Exec Threadsafe: No .-*CURLIB/------. >>-CRTTBL--TBL(--+---------------+--table-name--)---------------> '-library-name/-' >--+----------------------------------------------------------+--> | .-*LIBL/--------. .-QTBLSRC----------. | '-SRCFILE(--+-+---------------+--+-source-file-name-+-+--)-' | +-*CURLIB/------+ | | '-library-name/-' | | (1) | '-*PROMPT---------------------------------' (3) >--+----------------------------------------------+-------------> | (2) .-*TBL--------------------. | '-SRCMBR(-------+-source-file-member-name-+--)-' >--+-----------------------------+------------------------------> | .-*CVT-------. | '-TBLTYPE(--+-*SRTSEQ----+--)-' '-*UCSSRTSEQ-' >--+-----------------------------------------------------+------> | .-*HEX--------------------------. | | (4) | .-*LIBL/--------. | | '-BASETBL(-------+-+---------------+--table-name-+--)-' +-*CURLIB/------+ '-library-name/-' >--+--------------------------------------------------------+---> | (5) .-*JOB--------------------------. | '-BASESRTSEQ(-------+-*LANGIDSHR--------------------+--)-' +-*LANGIDUNQ--------------------+ +-*HEX--------------------------+ | .-*LIBL/--------. | '-+---------------+--table-name-' +-*CURLIB/------+ '-library-name/-' >--+--------------------------------------+---------------------> | (5) .-*JOB--------. | '-BASELANGID(-------+-language-ID-+--)-' >--+--------------------------------------------+---------------> | (6) .-*JOB-------------------. | '-CCSID(-------+-coded-character-set-ID-+--)-' >--+--------------------------------------+---------------------> | .-*LIBCRTAUT--------------. | '-AUT(--+-*CHANGE-----------------+--)-' +-*ALL--------------------+ +-*USE--------------------+ +-*EXCLUDE----------------+ '-authorization-list-name-' >--+-----------------------------+----------------------------->< | .-*BLANK--------. | '-TEXT(--+-'description'-+--)-'
Notes:
- SRCFILE(*PROMPT) must be specified in an interactive mode.
- This parameter is not valid when SRCFILE(*PROMPT) is specified.
- All parameters preceding this point can be specified in positional form.
- This parameter is valid only when TBLTYPE(*CVT) is specified.
- This parameter is valid only when TBLTYPE(*SRTSEQ) is specified.
- This parameter is valid only when TBLTYPE(*SRTSEQ) or (*UCSSRTSEQ) is specified. If you specify a TBLTYPE(*UCSSRTSEQ) and let this value default to *JOB then this paramater will be set to 13488.