HP 3000 Manuals

Native Language Support for KSAM XL Files [ COMMUNICATOR 3000 MPE MPE/iX RELEASE 4.0 ] MPE/iX Communicators


COMMUNICATOR 3000 MPE MPE/iX RELEASE 4.0

Native Language Support for KSAM XL Files 

by Maisie Lau 
Commercial Systems Division 

Native Language Support is available for KSAM XL with this release of
MPE/iX. When a language attribute is assigned to a KSAM XL file, all the
keys of type BYTE are sorted according to that specified language
collating sequence.  Native Language Support guarantees that both
one-byte and two-byte character keys are compared and sorted according to
the collating sequence of the language.

CREATE A KSAM XL FILE WITH LANGUAGE ATTRIBUTE 

There are two ways to create a KSAM XL file with language attribute.
It can be done with a BUILD command, or programmatically using
HPFOPEN/FOPEN. The language of the KSAM XL used must be installed on the
system prior to file creation.

BUILD Command 

When using the BUILD command, the parameter LANG=LANGNAME or LANG=LANGNUM 
may be supplied.  NATIVE-3000 is used as the default language attribute
if no language is specified.

HPFOPEN/FOPEN a KSAM XL file 

When HPFOPEN/FOPEN is used to create a KSAM XL file programmatically, you
must provide the langnum in word 10 of the KSAMPARAM array.  The flagword
(word 15) must be set to 1 if a language other than 0 (Native-3000) is
used to denote that word 10 contains valid information.

FILE SYSTEM INTRINSICS 

The same KSAM XL file system intrinsics can be used to access the KSAM XL
files with default NATIVE-3000 or native language attribute.



MPE/iX Communicators