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) |