HP 3000 Manuals

USING KSAM FILES IN BASIC PROGRAMS [ KSAM/3000 Reference Manual ] MPE/iX 5.0 Documentation


KSAM/3000 Reference Manual

Chapter 6  USING KSAM FILES IN 
           BASIC PROGRAMS 

OVERVIEW 

KSAM files are accessed from BASIC programs through calls to a set of
input-output procedures.  These procedures allow you to open, write
records to, read records from, update and delete records, position, lock,
unlock, and close KSAM files.  (Refer to Table 6-1 for a list of the
procedures and their associated functions.)

A KSAM file must already exist before it can be accessed from a BASIC
program.  It is usually created with the KSAMUTIL program BUILD command.
(Refer to section II for a description of BUILD.) The BASIC procedures
for accessing KSAM files do not provide a means to create a KSAM file.


NOTE The BASIC procedures to access KSAM files perform input-output activities differently from the BASIC input-output commands. The KSAM procedures read and write records in their entirety. Once part of a record has been read or written by one of the KSAM file access procedures, the entire record has, in actuality, been read or written. A subsequent call will access another record.

NOTE Character substrings are expressions when used in the BASIC KSAM procedures. As such, no values can be returned to them. A copy is passed.


MPE/iX 5.0 Documentation