How to invoke TBDRIVER (DK1TDRV)

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

Table 73. TBDRIVER 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 TBDRIVER in batch is provided in YOUR.PREFIX.TBASE.CNTL dataset.

At start-up, TBDRIVER 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 TBDRIVER by using the AL command. Other data definitions (TBOPT, TBTSRPT), if desired, must be allocated before invoking TBDRIVER.