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

Modifying Existing File Specifications While Copying

MPE documents

Complete PDF
Table of Contents
Index

E0300 Edition 4 ♥
E0394 Edition 3

A file equation can be used to modify file specifications of an existing file. The FCOPY subsystem can be used to copy data from an existing file into a new file using a back reference to the file equation for the new specifications. The following example copies data from the file DOC to a new KSAM XL file DOC1. The file type and key specifications for the new file are specified in the file equation.

  FILE DOC1=DOC1;KSAMXL;KEY=(b,1,4)
  FCOPY FROM=DOC;TO=*DOC1;NEW




Loading Data to a KSAM64 File


Building a KSAM File Programmatically