HP System Dictionary/XL General Reference Manual Vol 2 - Part 1 SDINIT (32256-90005)

8- 64
KSAM file. The following definitions are created:
1 KSAMFILE contains RECORD relationship
2 RECORD contains ELEMENT relationship
3 KSAMFILE key ELEMENT, if FILE-KEY = -1
The fields are mapped according to the following table:
Notes
1 ELEMENT is used as the element name in the RECORD contains ELEMENT relationship. It is
also used as the search key into DATA-ELEMENT data set. The element entity information re-
trieved from DATA-ELEMENT is used to initialize the relationship attributes if the BACK-REF-
ERENCE = OFF. In that case, the following mapping is used:
FILE entity name for the FILE entity
ELEMENT entity name for the ELEMENT entity*1
ELEMENT-ALIAS See note 2
FILE-KEY See note 3
ELEMENT-KEY Not mapped
ELEMENT-PRIMARY primary-flag attribute*4
DATA-CREATE Not" mapped.See DATA-ELEMENT
DATE CHANGE Not mapped.See DATA-ELEMENT
IDENTITY-CREATE scope-owner attribute
IDENTITY-CHANGE Not mapped.See ELEMENT-ELEMENT.
DESCRIPTION-KEY description attribute
POSITION Not mapped
FILE-POSITION Not mapped
KEY-DUPLICATES unique attribute*5
FILE-FIELD-NO Not mapped
attribute value assigned
element-type ELEMENT-TYPE from DATA-ELEMENT
byte-offset generated by SDCONV (starts from 1)
display-length ELEMENT-SIZE from DATA-ELEMENT
decimal ELEMENT-DEC from DATA-ELEMENT
byte-length ELEMENT-LENGTH from DATA-ELEMENT
count ELEMENT-COUNT from DATA-ELEMENT