Command title |
List Directory |
Description |
This command creates a library directory in a table identified by the TABLE field in xxxx-COMMAND-AREA. |
COBOL syntax |
|
C syntax |
|
Parameters |
DDNAME (optional)—the name of the library. If DDNAME is spaces or low values, or the parameter is not provided, then all libraries in the tableBASE Library List (LIB-LIST) are included in the directory. DIR-SPEC (optional)—specifies which tables are to be selected and which information format is to be used for the directory list. The TABLE-NAME-MASK field of the DIR-SPEC parameter specifies the tables to be selected. A wild-card character can be used to identify the tables to be selected. The DIRTYPE field of the DIR-SPEC parameter can be:
|
Explanation |
DIRTYPE = D. The directory table has a row size of 74 and a key size of 16 beginning at location 1. The format of a data directory entry (row) is:
DIRTYPE = V. The directory table has a row size of 44 and a key size of 16 beginning at location 1. The format of a view directory entry (row) is:
DIRTYPE = T. The directory table has a row size of 70 and a key size of 18 beginning at location 1. The format of a total directory entry (row) is:
|
Return value |
The COUNT field contains the number of directory entries placed into the table. Errors 0003 subcodes 2-5 can occur when reusing an existing table. Error 0050 occurs if you specify an invalid directory type. Error 0006 can occur if the LD uses an invalid VTS redirect. |
Notes |
LD does not store the directory list table on any library; if the table is to be stored, an ST command must be issued. The directory list table is built in the local TSR unless the TBPARM subsystem name field associated with the tableBASE call designates a VTS-TSR. If TABLE is already open and has the same format as the current request, then the new information will be appended to the end of the table and the COUNT field will be updated to reflect the total number of directory entries in the table. |
Exceptions |
None |
See also |