How to invoke DK1TDRV

The DK1TDRV command may be invoked in a batch job, or interactively through the TSO CLIST TBDR or the tablesONLINE/ISPF menu. DK1TDRV uses the files listed in Table 83.

Table 83. DK1TDRV files

DDNAME

Optional

Usage

CMD

No

Input command stream (80-byte records)

SYSOUT

No

Display of each input command and the result of its execution

TBSYSLB

Yes

tableBASE library containing TBDRHELP table (required for HP command)

MAINLIB

Yes

tableBASE library used in ML command (other DDNAMES/libraries could be used instead of MAINLIB, with appropriate ML command usage)

TBOPT

Yes

Allows overrides to system parameters.

TBTSRPT

Yes

Table Space Report, if desired

The TSO CLIST TBDR allocates CMD and SYSOUT to the terminal, and allocates a default TBSYSLB suitable for your installation. A MAINLIB may be allocated with the TLIB parameter, for example, TBDR TLIB('MY.FAVORITE.MAINLIB')

The tablesONLINE/ISPF panel has a field to specify a MAINLIB. It allocates CMD, SYSOUT, and TBSYSLB the same as TBDR.

Sample JCL to run DK1TDRV in batch is provided in YOUR.PREFIX.TBASE.CNTL dataset.

At start-up, DK1TDRV opens the TBDRHELP table, issues tableBASE commands ML,MAINLIB and CS,NN (to turn off both the abend-on-error and wait-for-enqueued-table switches) so that command results therefore echo the tableBASE error code. You may change these switch settings, if desired, with the CS command.

Other table libraries may be allocated before invoking TBDR or the ISPF panel, or may be allocated from within DK1TDRV by using the AL command. Other data definitions (TBOPT, TBTSRPT), if desired, must be allocated before invoking DK1TDRV.