USING COMMANDS TO DEFINE CATEGORIES [ DICTIONARY 3000 ] MPE/iX 5.0 Documentation
DICTIONARY 3000
USING COMMANDS TO DEFINE CATEGORIES
The Dictionary provides a way for you to identify functional areas in
your business and to show how information flows from area to area. The
Dictionary uses CATEGORY to define this information.
Each functional area is a category in the Dictionary. The information
may consist of departments, people, functions, documents, and so forth.
The organizational flow chart for the functional area can be documented
by defining a hierarchical relationship between them. This relationship
is established by using the RELATE command. (Refer to Chapter 4 of this
manual for a description of this command.) This hierarchical
relationship is summarized in Figure 3-4.
_________________________________________________________________________________
| |
| |
| CATEGORY <---- PARENT category|
| | |
| -----------|----------- |
| | | |
| | | |
| PARENT/CHILD |
| category ----> CATEGORY ... CATEGORY |
| / \ | |
| / \ | |
| / \ . |
| CHILD . |
| category ----> CATEGORY CATEGORY ... . |
| | | |
| | | |
| data |
| elements CATEGORY <---- CHILD category |
| | |
| | |
| data |
| elements |
| |
_________________________________________________________________________________
Figure 3-4. Summary of Hierarchical Structure for a Category
The category at the top of the structure is a PARENT category. Other
categories are related to the top category and are CHILD categories. A
CHILD category can in turn be a PARENT category to other CHILD
categories. In this hierarchical structure, a PARENT category cannot
have data elements associated with it.
The following description outlines the steps involved when the DICTDBM
commands are used to define categories. A complete description including
examples for all the commands is given in Section IV of this manual.
Creating Elements and Categories
To create data element and category entries, use the CREATE command. You
use the command string CREATE ELEMENT or CREATE CATEGORY to define the
entry. An element or a category must be defined in the Dictionary before
it can be associated or related to other entries. The name you use for
the category or the element must be unique.
The created entries can be displayed using the LIST or DISPLAY commands.
Changes can be made to the entry by using the MODIFY command. The entry
can be renamed by using the RENAME command. To delete the entry, use the
PURGE command.
Relating Categories to Categories
The hierarchical relationship between categories is established with the
RELATE command. Use the command string RELATE CATEGORY to define this
relationship. This command allows more than one category to be related
to the PARENT category during the command cycle.
To display the relationships, use the SHOW command. For a PARENT
category, this command displays each CHILD category. It also displays
the data elements associated with the CHILD category. The elements are
displayed in the physical order in which they were associated with the
category, and the CHILD categories are displayed in the physical order in
which they were related to the PARENT category.
The REPORT command can be used to display an alphabetical listing of the
elements associated with a category. For a PARENT category, REPORT
displays all the elements associated with the CHILD categories.
The relationship entry can be deleted with the REMOVE command, and it can
be changed with the CHANGE command. Use the REORDER command to change
the physical order in which the CHILD categories are related to the
PARENT category.
Adding Elements to Categories
The ADD command is used to associate data elements to categories. Use
the command string ADD CATEGORY to define this association. An entry is
defined that associates an element with a category. Elements cannot be
associated to a PARENT category. DICTDBM will not accept this and will
issue an error message if it is tried.
To display association entries, use either the REPORT command or the SHOW
command. If you want to delete the association entry, use the DELETE
command. To change the entry, use the UPDATE command. To change the
physical order of the association, use the RESEQUENCE command.
MPE/iX 5.0 Documentation