Command title |
List Open Tables |
Description |
The command provides usage statistics related to the TSR and the current tables opened in the TSR to assist in optimization and capacity planning. |
COBOL syntax |
|
C syntax |
|
Parameters |
LIST-BLOCK If the fields LIST-FROM and LIST-REQD in the LIST-BLOCK parameter are zero, then nothing will be returned to the TABLE-STATS parameter. In this case, the value returned in the LIST-TOTAL field will show the number of open tables in the TSR and this can then be used to control the amount of space required for the TABLE-STATS parameter in a subsequent execution of another LT command. The FUNCTION-ID in the command area can be set to 16 to return all output fields in this area – for more details, see LIST-BLOCK (88 bytes). TABLE-STATS (optional) |
Explanation |
The statistics provided by LT are stored in the LIST-BLOCK parameter and include:
|
Explanation (cont’d) |
See LIST-BLOCK (88 bytes) for a complete description of the LIST-BLOCK parameter. For each table selected in the TSR the following information is provided in the TABLE-STATS parameter:
See TABLE-STATS for a complete description of the TABLE-STATS parameter. The TSR Access, Table Access and Table Update counters are internal counters that are updated by tableBASE each time certain commands are executed successfully; they are reflected in the Strobe Report as well as the LIST-BLOCK and TABLE-STATS parameters used in the LT command. The following is a list of the commands that update each counter.
For the TSR Access counter:
For the Table Access counter:
For the Table Update counter: |
Return value |
None |
Notes |
This command is not usually coded in a program. Support for it has been incorporated in the command processors TBDRIVER (DK1TDRV) and TBDRIVC (DK1TDRVC). For information on using TBDRIVER and TBDRIVC, see tableBASE driver command processor for CICS and TBDRIVER command processor for Batch/TSO. Using these development tools, the LT command produces formatted output of the current state of the TSR (see Figure 92 below). This command might be used in utility transactions. A transaction that closes all open tables is a good example. It could do an LT to see the TSR information just prior to closing all tables. |
Exceptions |
None |
See also |
ACCESS COUNTS
shows the value in the TSR Access counter; CALLS
shows the value in the Table Access counter, and UPDATES
shows the value in the Table Update counter.