HPlogo KSAM/3000 Reference Manual: HP 3000 MPE/iX Computer Systems > Chapter 6 USING KSAM FILES IN BASIC PROGRAMS

OVERVIEW

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

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 “KSAM Procedures for BASIC Interface” 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.Character substrings are expressions when used in the BASIC KSAM procedures. As such, no values can be returned to them. A copy is passed.
Feedback to webmaster