MPE/iX System Utilities Reference Manual (32650-90908)

Chapter 8
FCOPY
Operation
102
Using FCOPY with KSAM Files
To FCOPY from an old compatibility mode KSAM file to a new compatibilty mode KSAM file enter:
FCOPY FROM=OLDFILE;TO=(DATAFILE,KEYFILE)
OLDFILE is the old compatibility mode KSAM data file. DATAFILE is the new compatibility mode data file and
KEYFILE is the new compatibilty mode key file. The new key and data files are constructed for you with
exactly the same structure as the old key and data files. The ;NEW option need not be used.
To FCOPY from an MPE/iX file (a flat file) to an old KSAM file (compatibility or native mode) enter:
FCOPY FROM=FLATFILE;TO=KSAMFILE
To FCOPY from a KSAM file to an old flat file enter:
FCOPY FROM=KSAMFILE;TO=ANYFILE
KSAMFILE is either a native mode KSAM file or compatibility mode KSAM data file. ANYFILE is an old MPE/iX file.
To FCOPY from a compatibility mode KSAM file, but to treat the file as if it were an MPE/iX flat file, enter:
FCOPY FROM=KSAMFILE;TO=ANYFILE;NOKSAM
You may use the NOKSAM parameter with only compatibility mode KSAM files.
To FCOPY from any old KSAM file (compatibility or native mode) to a new native mode KSAM file enter:
FCOPY FROM=OLDFILE;TO=(NEWFILE)
OLDFILE is the old KSAM file. NEWFILE is the new native mode KSAM file.
Additional Discussion
For more information refer to the FCOPY Reference Manual.