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

3- 31
Example
The example below shows the logical sequence of data creation, data association, and data maintenance
using many of the available data maintenance commands listed in table Table 3-4.
>DEFINE DICTIONARY = sysdic; Opens the dictionary.
>>SCOPE = dictionary-administrator;
>>PASSWORD = da;
>>OPEN-MODE = shared-update;
>>DOMAIN = domain1;
>>STATUS = test.
>CREATE SCOPE personnel; Creates anew security scope calledpersonnel, with secure,
>>SCOPE-RIGHTS = s,c,v; create, and version capabilities, and with p as the pass-
word.
>>PASSWORD = p.
>CREATE DOMAIN personnel-domain; Creates a new domain called personnel-domain with a
new version called testversion linked to the common ver-
sion version1.
>>VERSION = testversion; COMMON = version1.
>DEFINE Reopens SYSDIC (which is the default if no dictionary is
>>SCOPE = personnel; specified) with the new scope, version, and domain that have
just been created.
>>PASSWORD = p;
>>OPEN-MODE = exclusive-update;
>>VERSION = testversion;
>>DOMAIN = personnel-domain.
>CREATE ENTITY employee-record; Creates a new entity called employee-record of entity-
type record.
>>ENTITY-TYPE = record;
>>ATTRIBUTE-LIST = (byte-length = 55,
>>DESCRIPTION="This record
>>contains employee data").
>CREATE ENTITY last-name; Creates new entities called last-name, first-name, date-