Using KSAM/XL and KSAM 64 (32650-90886)

Chapter 9 127
KSAM Intrinsics
FOPEN
12:1 Enter 1 if deleted record space can be reused. Enter 0 if
deleted record space cannot be used.
11:1 Enter 1 if a language type is specified. Enter 0 if a
language type is not specified.
10:1 Enter 1 if the primary key cannot be changed with the
FUPDATE intrinsic for files that are opened for sequential
processing. Enter 0 if the primary key can be changed with
the FUPDATE intrinsic for files that are opened for
sequential processing. This enables KSAM processing of
COBOL information according to COBOL standards.
9:1 Enter 1 if the file is programmatically accessed by the
COBOL programming language. Enter 0 if the file is not
programmatically accessed by the COBOL programming
language. This enables KSAM to process COBOL
information according to COBOL standards.
8:1 Enter 1 if selecting optimal block size.
0:9 Enter 0. These bits are reserved and must contain zeros.
Number of Keys
In bits 8:8, enter a number between 1 and 16 specifying the number of
keys to be defined for this file.
Key Definitions
Each key in the file requires a 4-halfword word definition. The first
definition is always the primary key. Up to 15 alternate keys are allowed
for any KSAM file. The key definitions contain the key type, key length,
key location, duplicate key flag, and random insert flag:
Key Type
Bits 0:4 specify the type of key:
Value Meaning
0001 Byte key (1 to 255 bytes)
0010 Short integer key (255 bytes)
0011 Integer key (255 bytes)
0100 Real number key (255 bytes)
0101 Long real number key (255 bytes)
0110 Numeric display key (1 to 28 bytes)
0111 Packed decimal key (1 to 14 bytes)
1000 Signed packed decimal key (2 to 14 bytes)
1001 IEEE floating-point decimal key (4, 8, or 16 bytes)
Key Length