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

Chapter 9 157
KSAM Intrinsics
HPFOPEN
10 I32 File type:
Passes a value indicating the internal record structure used to access
records in the file. If the file is old, this option is ignored. Specifying an
itemnum
=5 value other than zero overrides this option. This option is
applicable only at file creation.
The following values are valid:
0 Standard (STD) file
1 KSAM/3000 file
2 Relative I/O (RIO) file
3 KSAM XL file
4 Circular (CIR) file
6 Message (MSG) file
7 KSAM64 file
Default: 0
11 I32 Access type:
Passes a value indicating the type of access intended for the file. This
option restricts usage of the file system intrinsics.
The following values are valid:
0 Read access only, if the file's security provisions allow
read access. FWRITE, FUPDATE, and FREMOVE intrinsic
calls cannot reference this file. The end-of-file (EOF) is
not changed. (Default)
1 Write access only, if the file's security provisions allow
write access. Any data written in the file prior to the
current HPFOPEN request is deleted. FFINDBYKEY,
FFINDN, FPOINT, FREAD, FREADBYKEY, FREADC,
FREADDIR, FREMOVE, FSPACE, and FUPDATE intrinsic
calls cannot reference this file. The EOF is set to zero.
2 Write-save access only, if the file's security provisions
allow write access. Previous data in the file is not
deleted. FFINDBYKEY, FFINDN, FPOINT, FREAD,
FREADBYKEY, FREADC, FREADDIR, FREMOVE, FSPACE,
and FUPDATE intrinsic calls cannot reference this file.
The EOF is not changed. Therefore, data is overwritten
if FWRITE is called. The system changes this value to
append for message files.
Table 9-7. HPFOPEN Itemnum/Item Values
Itemnum Mnemonic Item Description