CDD/Plus CDO DIRECTORY — VMS CDD+_4.1A
Produces a list of the objects in one or more directories. DIRECTORY ──────┬───────────────>──────────────────────┬───┐ ├─> typebox (/)
B
E
F
O
R
Etypebox (=)time ──────────────────────┤ │ ├─> typebox (/)
B
R
I
E
F ────────────────────────────┤ │ ├─> typebox (/)
F
U
L
L ─────────────────────────────┤ │ ├─> typebox (/)
S
I
N
C
Etypebox (=)time ───────────────────────┤ │ └─> typebox (/)
T
Y
P
Etypebox (=) ( ─┬> protocol-name ─┬─> ) ─┘ │ └──────── , <─────┘ │ ┌──────────────────────────────<─────────────────────────┘ └────────────────┬─┬────────>───────┬─┬─> │ └─> object-name ─┘ │ └───────── , <───────┘
Additional information available:
object-name
Specifies the object or objects to be listed. It can be a CDO directory, a CDO definition, or a logical name.
Qualifiers
Additional information available:
/BEFORE=time
Selects only those objects dated before the specified time. You can omit the time specification, or you can specify an absolute time, a combination of absolute and delta times, or one of the keywords TODAY, TOMORROW, or YESTERDAY. See the VAX/VMS DCL Concepts Manual for more information on specifying times. If you do not specify the /BEFORE qualifier, all objects are listed. If you specify /BEFORE without a time specification, /BEFORE=TODAY is assumed.
/BRIEF (default)
Displays the object names and their protocol types. This is the default display.
/FULL
Displays the name, protocol type, owner, and access control information (protection) for each dictionary object. The /FULL option also displays the dictionary type and the approximate size of each dictionary object.
/SINCE=time
Selects only those objects dated at and after the specified time. You can omit the time specification, or you can specify an absolute time, a combination of absolute and delta times, or one of the keywords TODAY or YESTERDAY. See the VAX/VMS DCL Concepts Manual for more information on specifying times. If you do not specify the /SINCE qualifier, all objects are listed. If you specify /SINCE without a time specification, /SINCE=TODAY is assumed.
/TYPE=(protocol-name,...)
Selects only objects of the specified protocol or protocols. You cannot use wildcard characters in the protocol-name. If you do not have read access to all the objects in a directory, CDO only displays the names of those objects to which you have read access.
Examples
The following command displays all objects (by name and protocol only)
cataloged in the current default directory.
CDO> DIRECTORY
Directory MY$DISK:[DICTIONARY]CORPORATE
ADDRESS_RECORD;1 RECORD
BENEFITS DIRECTORY
EMPLOYEE_LIST;1 RECORD
FIRST_NAME;1 FIELD
FULL_NAME;1 RECORD
LAST_NAME;1 FIELD
MIDDLE_INITIAL;1 FIELD
PRODUCT_INVENTORY;2 RECORD
CDO>
The following command displays the name, type, owner, and protection
information for all objects created since 00:00 (midnight) of the
previous day in the [SMITH.DICT] directory and all subdirectories under
that directory (no matter how many levels down).
CDO> DIRECTORY/FULL/SINCE=YESTERDAY [SMITH.DICT]...
Directory AK$DISK:[SMITH.DICT]
CDD$PROTOCOLS DIRECTORY
GLOBAL DIRECTORY
Directory AK$DISK:[SMITH.DICT]GLOBAL
JOB_START;1 FIELD
Created: 7-MAY-1987 10:57:05.55 Revised: 7-MAY-1987 10:57:05.55
Owner [VCD,SMITH]
Access Cntrl List: (IDENTIFIER=[VCD,SMITH],ACCESS=READ+WRITE+MODIFY+ERASE
+SHOW+DEFINE+CHANGE+DELETE+CONTROL+OPERATOR+ADMINISTRA
TOR)
(IDENTIFIER=[*,*],ACCESS=READ+WRITE+MODIFY+ERASE+SHOW
+OPERATOR+ADMINISTRATOR)
Size: 5840 Dictionary_format: CDO format
CDO>
The following command displays the name, number of versions, and
protocol type of field definition TEST_FIELD, an object in the
[SMITH.DICT]GLOBAL directory:
CDO> DIRECTORY [SMITH.DICT]GLOBAL.TEST_FIELD
Directory AK$DISK:[SMITH.DICT]GLOBAL
TEST_FIELD;1 FIELD
CDO>
The following command displays the name and type (DIRECTORY) of the
directory [JONES.WORK]MYDIRECTORY:
CDO> DIRECTORY [JONES.WORK]MYDIRECTORY
Directory AK$DISK:[JONES.WORK]
GLOBAL DIRECTORY
CDO>
The following command displays the name and protocol type of the
objects in the CONTRACT directory:
CDO> DIRECTORY CONTRACT.*
Directory AK$DISK:[REDDEN.DICTIONARY]PERSONNEL.CONTRACT
ADDRESS;1 RECORD
CITY;1 FIELD
STATE;1 FIELD
STREET;1 FIELD
ZIP_CODE;2 FIELD
ZIP_CODE;1 FIELD
CDO>
In the following DIRECTORY command, a search list is used. The logical
name MY_DICT translates to the physical dictionary areas
DISK1:[CORPORATE.PERSONNEL]EMPLOYEES and
FARWAY::DISK2:[REMOTE.DICTIONARY]SECURITY. This DIRECTORY command
looks for dictionary objects named MY_FIELD in the dictionary areas
specified in the search list:
CDO> SET DEFAULT MY_DICT
CDO> DIRECTORY MY_FIELD
Directory DISK1:[CORPORATE.PERSONNEL]EMPLOYEES
MY_FIELD;1 FIELD
Directory FARWAY::DISK2:[REMOTE.DICTIONARY]SECURITY
MY_FIELD;2 FIELD
MY_FIELD;1 FIELD
CDO>