1.CDO> RESERVE FIELD /CLOSURE=TO_TOP FIRST_NAME
In this example, the RESERVE command with the /CLOSURE=TO_TOP
qualifier reserves the FIRST_NAME field element and all owners
to the top collection.
2.CDO> RESERVE FIELD /CLOSURE=TO_TOP /BRANCH=AUDITOR PRODUCT_NUMBER
In this example, the RESERVE command with the /CLOSURE=TO_TOP
qualifier reserves all elements on the path between the top
collection and field PRODUCT_NUMBER; the /BRANCH qualifier
creates a branch line AUDITOR descending from PRODUCT_NUMBER.
3.CDO> RESERVE FIELD /CLOSURE=TO_TOP PRODUCT_NUMBER(1:AUDITOR:1)
In this example, the RESERVE command reserves the first version
in the AUDITOR branch line.
4.SYSTEM collection
SOURCE_FILES collection
FIRST_FILE.C
SECOND_FILE.C
INC.H
DERIVED_FILES collection
FIRST_FILE.OBJ
SECOND_FILE.OBJ
IMAGE_FILE.EXE
In this example, the code shows a collection hierarchy with
SYSTEM defined as the top collection. The dependencies in
SYSTEM are as follows:
o IMAGE_FILE.EXE depends on FIRST_FILE.OBJ and SECOND_
FILE.OBJ.
o FIRST_FILE.OBJ depends on FIRST_FILE.C and INC.H.
o SECOND_FILE.OBJ depends on SECOND_FILE.C and INC.H.
5.CDO> RESERVE FILE_ELEMENT MCS_BINARY /CLOSURE=TO_CLOSURE INC.H
In this example, the RESERVE command reserves the following
elements:
o Element INC.H
o Owners of the element specified, SOURCE_FILES and SYSTEM
o Elements that directly or indirectly depend on the element,
FIRST_FILE.OBJ, SECOND_FILE.OBJ, IMAGE_FILE.EXE
6.CDO> RESERVE FILE_ELEMENT MCS_BINARY /NOOUTPUT "/ISAM_FILE.DAT"
In this example, ISAM_FILE.DAT is reserved using the /NOOUTPUT
qualifier, but the file is not copied into the current context
directory.