Schema DDL Types of access
U929-J-Z125-9-76 87
Dokuschablonen 19x24 Version 7.3us für FrameMaker V7.x vom 14.02.2007 © cognitas GmbH 2001-2007 24. Oktober 2007 Stand 09:30.23 Pfad: G:\vogt\fsc\ud s\Manuale\en\udsent_e\uds ent.k04
4.7.2 Generating additional access paths for direct access on record type level
Defining a primary key for conversion by hash routine
LOCATION MODE IS CALC[ hash-routine]
USING item-name,... DUPLICATES ARE[ NOT] ALLOWED
With this clause, the user specifies the distributed storage of rec ords on the basis of a hash
routine. The storage area which you address with this routine is called the ha sh area.
If the records are owners of a set, the corresponding set occurrences c an also be conve-
niently selected (see the section “Determining s et occurrence selection” on page 103).
A key declared by LOCATION MODE IS CALC is referred to as a CALC key. It is the primary
key for the record type. It may comprise several items (compound key).
item-name specifies the item(s) representing the key; all named items must belong to the
same associated record type and may be both numeric and alp hanumeric.
With the DUPLICATES ARE[ NOT] ALLOWED specification, the user determines (for a
particular realm) whether UDS/SQL is to accept or re ject duplicate key values.
Use hash-routine to specify the name of a module when you want to control the location of
the data in the hash area yourself. If you make no entry for hash-routine, UDS/SQL uses its
default hash routine.
If you have specified a hash-routine, it converts your primary key to a four-byte binary
number. UDS/SQL then converts the binary number to a relative page number. The page
with that number generally contains the associated record (see the s ection “Direct CALC
page” on page 210).