Dictionary/3000 Reference Manual (32244-90001)

Chapter 3 43
Using the DICTDBM Commands
Using Commands to Define HP Inform/3000 Groups
After creating entries in the Dictionary, you can use the LIST or DISPLAY commands. If
you want to delete an entry, use the PURGE command. To change an entry, use either the
MODIFY or RENAME commands.
The RELATE ELEMENT command string can be used to define CHILD elements (fields)
within a PARENT data element. Note, however, that to report on a CHILD data element
from HP Inform/3000, that data element must have been added to the group (the PARENT
element may or may not be in the group).
Relating Groups to a Group
The hierarchical relationship between groups is established with the RELATE command.
Use the command string RELATE GROUP to define this relationship. When relating
groups to the top of the hierarchical structure, enter $MENU in response to the prompt for
PARENT GROUP; in response to CHILD GROUP, enter the name of the group to be
related to $MENU. The groups related to $MENU will all appear on HP Inform/3000's
Group Menu.
A relationship for other levels is defined in a similar manner - by entering the name of the
higher level group for PARENT GROUP, and the lower level group for CHILD GROUP. If
the PARENT group is not $MENU, the CHILD groups related to that PARENT group will
appear on an HP Inform/3000 Subgroup Menu.
The DESCRIPTION prompt allows you to supply useful information but is not required to
define the relationship.
The relationship between groups can be displayed by using the SHOW command. For a
PARENT group, this command displays each CHILD group, if any, and the data elements
associated with each CHILD. For a CHILD group, the data elements associated with it are
displayed. The elements are displayed in the actual order they were associated with the
group.
The REPORT command can be used to display an alphabetical listing of the elements
associated with a group or with related CHILD groups.
You can delete the relationship entry by using the REMOVE command and can change the
entry by using the CHANGE command. The REORDER command is used to change the
actual order in which the CHILD groups are related to the PARENT groups.
Example
>RELATE GROUP
PARENT GROUP> $menu <
CHILD GROUP> marketing <
DESCRIPTION>
CHILD GROUP> shipping <
DESCRIPTION>
CHILD GROUP> personnel <
DESCRIPTION>
CHILD GROUP> <