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

Loading Data to a KSAM64 File

MPE documents

Complete PDF
Table of Contents
Index

E0300 Edition 4 ♥
E0394 Edition 3

The FCOPY utility is also used to load data to a KSAM64 file. In order to copy data to a KSAM64 file, a file equation must first be referenced which specifies the KSAM64 file type.

For example:

  :FILE NEWKSM64; KSAM64
  :FCOPY FROM=OLDKSMXL; TO=(*NEWKSM64)

In the example above, the file equation overrides the FCOPY default of creating a KSAM XL file.

This example also could be used to copy data from a CM KSAM file, or any other FROM file type.

The FCOPY utility can also be used to retrieve data from a KSAM64 file (use the KSAM64 file as the FROM file) and to copy to a KSAM64 file with different attributes. The following example shows how a new larger KSAM64 file can be created from an existing, smaller KSAM64 file

  :FILE DATANEW; KSAM64; DISC=1000000000
  :FCOPY FROM=DATA; TO=(*DATANEW)




Loading Data to a KSAM XL File


Modifying Existing File Specifications While Copying