1.CDO> DEFINE COLLECTION REGIONAL_SALES. In this example, the DEFINE COLLECTION command creates the REGIONAL_SALES collection. 2.CDO> DEFINE PARTITION FIRST_BASELEVEL. 1 CDO> DEFINE CONTEXT DEVELOPMENT_CONTEXT cont> BASE_PARTITION FIRST_BASELEVEL. CDO> SET CONTEXT DEVELOPMENT_CONTEXT CDO> DEFINE COLLECTION COMPILER_C. 2 CDO> RESERVE COLLECTION COMPILER_C CDO> DEFINE COLLECTION FRONT_END. 3 CDO> DEFINE COLLECTION BACK_END. CDO> DEFINE COLLECTION PARSER. CDO> DEFINE FILE_ELEMENT MCS_BINARY PARSER_TABLES cont> STORETYPE EXTERNAL cont> MCS_STOREDIN IS "CDD$DISK:[SMITH]PARSER_TABLES.DAT". cont> END FILE_ELEMENT MCS_BINARY PARSER_TABLES. CDO> DETACH COLLECTION PARSER FROM COMPILER_C 4 CDO> DETACH FILE_ELEMENT PARSER_TABLES FROM cont> COMPILER_C CDO> RESERVE COLLECTION FRONT_END CDO> ATTACH COLLECTION PARSER TO FRONT_END 5 CDO> RESERVE COLLECTION PARSER CDO> ATTACH FILE_ELEMENT PARSER_TABLES TO PARSER CDO> REPLACE COLLECTION /CLOSURE=TO_TOP PARSER The successive DEFINE COLLECTION commands in this example participate in the creation of a collection hierarchy. 1 DEFINE PARTITION, DEFINE CONTEXT, and SET CONTEXT commands allow you to control elements. 2 DEFINE COLLECTION command creates the collection; this command also sets COMPILER_C as the top collection because the current context, DEVELOPMENT_CONTEXT, does not have a top collection defined. 3 DEFINE COLLECTION commands create subcollections FRONT_END, BACK_END, and PARSER and file element PARSER_TABLES under collection COMPILER_C. 4 DETACH commands detach PARSER and PARSE_TABLES from collection COMPILER_C. 5 ATTACH commands attach PARSER under subcollection FRONT_END and PARSE_TABLES under subcollection PARSER.