Command title |
Get Table Definition |
Description |
This command supplies information describing the specified table, including the complete table definition, but excluding the read and write passwords. |
COBOL syntax |
|
C syntax |
|
Parameters |
DEFINITION-BLOCK GENERATION (optional) |
Explanation |
The TSR of record is the local TSR if there is no VTS name in the TB-PARM, otherwise it is the VTS-TSR specified in the TB-PARM. When the library list is being searched the following occurs:
If the GENERATION parameter is not specified the following occurs:
If the GENERATION parameter is specified, the definition is obtained from the library list even if the table is open:
|
Return value |
The information is returned in the DEFINITION-BLOCK parameter. If the definition is returned, FOUND is set to Y, otherwise it is set to N. OPEN-STATUS in the returned definition block is set to X if the table definition is returned from the library list, otherwise it is set to R or W depending on whether the table is opened for read (R) or for write (W) in the TSR. ERROR is set to 8 if the table is found on a regular library but there is no matching generation number. The read and write Password fields will be set to blanks if the table has no passwords, or will be set to Xs if the password has been defined for the table. The command shows the time and date of creation for a temporary table (created by DT or IA). Previous releases showed these values only for tables that were stored on a library. |
Notes |
For an Alternate Index that is not open, row size is returned as zero. |
Exceptions |
None |
See also |