Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
TBSTATS—retrieve table statistics z/OS ISPF Services Guide SC19-3626-00 |
|
The TBSTATS service obtains statistical information for a table and saves the information in variables specified in the service request. Table statistics are maintained with each physical table member stored on permanent storage. The TBSTATS service provides access to these statistics from a dialog. The TBSTATS service also provides status information regarding the current usage of a specified table. The statistics for a given table are available whether the table is open or closed. The statistics reflect the table as it exists on the input table file, except when the table is open in the logical screen where the TBSTATS service is issued. The statistics then reflect the version of the table that is currently open. The existence of a table can be checked by the value in the STATUS1 field. If the table does not exist, no other processing takes place. This statistical information is available:
For statistical purposes, two table processes have been defined. The "create process" is defined as beginning with the TBCREATE and ending with a TBCLOSE or TBEND. The "update process" is defined as beginning with the TBOPEN and ending with a TBCLOSE or TBEND. Command invocation format>>-ISPEXEC--TBSTATS--table-name--+--------------------------+---> '-CDATE(date-created-name)-' >--+--------------------------+--+--------------------------+---> '-CTIME(time-created-name)-' '-UDATE(date-updated-name)-' >--+--------------------------+--+-----------------+------------> '-UTIME(time-updated-name)-' '-USER(user-name)-' >--+----------------------------+--+----------------------+-----> '-ROWCREAT(row-created-name)-' '-ROWCURR(rownum-name)-' >--+--------------------------+---------------------------------> '-ROWUPD(row-updated-name)-' >--+------------------------------+-----------------------------> '-TABLEUPD(table-updated-name)-' >--+-----------------------+--+---------------------------+-----> '-SERVICE(service-name)-' '-RETCODE(return-code-name)-' >--+-----------------------+--+-----------------------+---------> '-STATUS1(status1-name)-' '-STATUS2(status2-name)-' >--+-----------------------+--+------------------+--------------> '-STATUS3(status3-name)-' '-LIBRARY(library)-' >--+-------------------------------------+----------------------> '-VIRTSIZE(virtual-storage-size-name)-' >--+------------------------------------+-----------------------> '-CDATE4D(date-created-name-4-digit)-' >--+------------------------------------+---------------------->< '-UDATE4D(date-updated-name-4-digit)-' Call invocation format>>-CALL--ISPEXEC--(buf-len,--buffer);-------------------------->< or >>-CALL--ISPLINK--('TBSTATSb'--,--table-name--------------------> >--,-+-date-created-name-+--,-+-time-created-name-+-------------> '-'b'---------------' '-'b'---------------' >--,-+-date-updated-name-+--,-+-time-updated-name-+-------------> '-'b'---------------' '-'b'---------------' >--,-+-user-name-+--,-+-row-created-name-+--,-+-rownum-name-+---> '-'b'-------' '-'b'--------------' '-'b'---------' >--,-+-row-updated-name-+--,-+-table-updated-name-+-------------> '-'b'--------------' '-'b'----------------' >--,-+-service-name-+--,-+-return-code-name-+-------------------> '-'b'----------' '-'b'--------------' >--,-+-status1-name-+--,-+-status2-name-+--,-+-status3-name-+---> '-'b'----------' '-'b'----------' '-'b'----------' >--,-+-library-+--,-+-virtual-storage-size-name-+---------------> '-'b'-----' '-'b'-----------------------' >--,-+-date-created-name-4-digit-+------------------------------> '-'b'-----------------------' >--,-+-date-updated-name-4-digit-+-);-------------------------->< '-'b'-----------------------' Parameters
Return codesThese return codes are possible:
ExampleDetermine the date when the table TELBOOK was created and when
it was last updated.
Set
the program variable BUFFER to contain:
Set
program variable BUFLEN to the length of the variable BUFFER. Issue
the command:
or alternately
|
Copyright IBM Corporation 1990, 2014
|