HP 3000 Manuals

CREATE SYNONYM [ HP SYSTEM DICTIONARY XL SDMAIN ] MPE/iX 5.0 Documentation


HP SYSTEM DICTIONARY XL SDMAIN

CREATE SYNONYM 

Creates a new synonym for an entity.

Syntax 

     C[REATE] SYN[ONYM] synonym-name 
            [;INT[ERNAL] = internal-name]
             ;E[NTITY-]T[YPE] = entity-type-name 
             ;E[NTITY] = entity-name 
             .

Parameters 

synonym-name          Name of the synonym to be created.

internal-name         Internal name of the synonym to be created.  If not
                      specified, the internal name is the same as the
                      synonym-name.

entity-type-name      Name of the type of the entity for which to create
                      a synonym.

entity-name           Name of the entity for which to create a synonym.

Description 

The new synonym refers to the same attribute list as the entity primary
name and applies to all versions of the entity.

You can use synonyms only to directly reference an entity (a
relationship) in the dictionary.  You cannot use them to do qualified
retrievals using the reporting commands.  Accordingly, the name reported
for the entity in a qualified retrieval is always the primary name.

Open Mode:       Shared-update or exclusive-update

Scope:           DA scope or the entity's owner scope.  The scope with
                 which the dictionary is open is the owner of the
                 synonym.

Example 

The following example creates a new synonym purch-date for the element
order-date.

     >CREATE SYNONYM purch-date; 
     >>ENTITY-TYPE = element; 
     >>ENTITY = order-date. 
     >


MPE/iX 5.0 Documentation