Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
TBQUERY—obtain table information z/OS ISPF Services Guide SC19-3626-00 |
|
The TBQUERY service returns information about a specified table,
which must have been opened (TBOPEN) by the current user before
invoking this service. This information can be obtained:
All the parameters except for table-name are optional. If all of the optional parameters are omitted, TBQUERY simply validates the existence of an open table. Command invocation format>>-ISPEXEC--TBQUERY--table-name--+----------------+-------------> '-KEYS(key-name)-' >--+-----------------+--+---------------------+-----------------> '-NAMES(var-name)-' '-ROWNUM(rownum-name)-' >--+---------------------+--+-----------------------+-----------> '-KEYNUM(keynum-name)-' '-NAMENUM(namenum-name)-' >--+--------------------+--+--------------------+---------------> '-POSITION(crp-name)-' '-SORTFLDS(srt-name)-' >--+--------------------+--+---------------------+--------------> '-SARGLIST(lst-name)-' '-SARGCOND(cond-name)-' >--+-------------------+--------------------------------------->< '-SARGDIR(dir-name)-' Call invocation format>>-CALL--ISPEXEC--(buf-len,--buffer);-------------------------->< or >>-CALL--ISPLINK--('TBQUERYb'--,--table-name--,-+-key-name-+----> '-'b'------' >--,-+-var-name-+--,-+-rownum-name-+--,-+-keynum-name-+---------> '-'b'------' '-'b'---------' '-'b'---------' >--,-+-namenum-name-+--,-+-crp-name-+--,-+-srt-name-+-----------> '-'b'----------' '-'b'------' '-'b'------' >--,-+-lst-name-+--,-+-cond-name-+--,-+-dir-name-+--);--------->< '-'b'------' '-'b'-------' '-'b'------' Parameters
Return codesThese return codes are possible:
ExampleFor the keyed table TELBOOK:
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
|