HP System Dictionary/XL SDMAIN Reference Manual (32256-90001)

3- 29
entity-type, and then associate the new attribute to the new entity-type.
Dictionary Data Maintenance Commands
Once you have run SDMAIN, opened the dictionary, and defined the environment, you can then begin
entering and updating dictionary data. To do this, however, you must open the dictionary with a scope that
grants you the scope rights that you need. For example, if you need to use versions, you must have a scope
that grants version capability. (See the HP System Dictionary/XL General Reference Manual, Volume 1
for a discussion of scope rights.)
In addition, you must open the dictionary in either shared-update or exclusive-update open mode. These
are the only two modes in which you are allowed to enter and modify data, manage security (create scopes,
etc.), use version capability, and use the domain feature. You cannot modify a compiled dictionary. If you
specify any of the dictionary data maintenance commands with a compiled dictionary, System Dictionary
issues an error message. Table 3-4 lists the data maintenance commands and their subcommands. The
specific syntax for each of these commands is shown in Chapter 4, "System Dictionary Commands."
>DEFINE DICTIONARY = sysdic;
>>SCOPE = dictionary-administrator;
>>PASSWORD = da;
>>OPEN MODE = customization.
Opens the dictionary with the Dictionary Administrator
scope and customization open mode.
>CREATE ENTITY-TYPE terminal. Creates a new entity-type called terminal.
>CREATE ATTRIBUTE terminal-type;
>>TYPE=c;
>>LENGTH=30.
Creates a new attribute called terminal-type as a character
string containing 30 bytes.
>ADD ENTITY-TYPE-ATTRIBUTE terminal;
>>ATTRIBUTE = terminal-type.
Associates the attribute terminal-type to entity-type termi-
nal.
>EXIT Exits the SDMAIN program, restructuring the dictionary to
incorporate the added structure.
Table 4: Dictionary Data Maintenance Commands and Subcommands
COMMAND SUBCOMMAND *
ADD SCOPE-DOMAIN | SCOPE-ENTITY | SCOPE-RELATIONSHIP
COPY ENTITY | RELATIONSHIP | VERSION
CREATE DOMAIN | ENTITY | RELATIONSHIP | SCOPE | SYNONYM | VERSION
DELETE DOMAIN | ENTITY | RELATIONSHIP | SCOPE | SYNONYM | VERSION
EDIT ENTITY | RELATIONSHIP
MODIFY DOMAIN | ENTITY | RELATIONSHIP | SCOPE | VERSION | SCOPE-ENTITY |
SCOPE-RELATIONSHIP
REMOVE SCOPE-DOMAIN | SCOPE-ENTITY | SCOPE-RELATIONSHIP
RENAME DOMAIN | ENTITY | SCOPE | VERSION