HPlogo Using KSAM XL and KSAM 64 > Chapter 2 Creating a KSAM File

Chapter 2 Creating a KSAM File

MPE documents

Complete PDF
Table of Contents
Index

E0300 Edition 4 ♥
E0394 Edition 3

Table of Contents
Creating the File With the BUILD Command
KSAM File Characteristics
Sample BUILD Command
Specifying an Indirect File
Loading Data to a KSAM XL File
Loading Data to a KSAM64 File
Modifying Existing File Specifications While Copying
Building a KSAM File Programmatically
Language ID
Flag word
Number of Keys
Key Parameters
Using Related Commands
Deleting a KSAM File
Renaming a KSAM File
Modifying File Attributes
You can create a KSAM file in several different ways:
  • Using the BUILD command. The file name and file characteristics are specified in the command parameters. The file can then be loaded with data by using the FCOPY subsystem to load existing file data or by directing program output to the file.

  • Copying an existing file using the FCOPY subsystem. File characteristics can be defaulted to those of the existing file or modified by using a file equation.

  • Using HPFOPEN or FOPEN intrinsic parameters from within an application program. The intrinsic call creates and opens the file. The program's output can then be written to the opened file.




Automatic Recovery


Creating the File With the BUILD Command