HPlogo Using KSAM XL and KSAM 64 > Chapter 8 Migration and Mixed Mode Processing

Mixed Mode Operation

MPE documents

Complete PDF
Table of Contents
Index

E0300 Edition 4 ♥
E0394 Edition 3

Application programs running in CM or NM can access either CM KSAM or KSAM XL/64 files. If you are using an RPG application, do not specify any record locking features. RPG will default to file-level locking. This is especially important for cross-development for multiple environments.

In some organizations, cross development is necessary because satellite offices operate different types of systems. CM KSAM files can be used on both MPE V/E and MPE/iX systems. The KSAM XL/64 file format can be used only on MPE/iX systems.

KSAM files can be copied from one type to another using the FCOPY utility. For detailed information on using the FCOPY utility, refer to the FCOPY Reference Manual.

To create a new CM KSAM file and copy data to it from an existing CM KSAM file , remember to identify both the data file and the key file for the target CM KSAM file. Use this method to back up current files or to create test files on an MPE V/E system. This process is described in detail in the KSAM/3000 Reference Manual.

  :FCOPY
  >FROM=ARMSTR.MGR.AR;TO=(ARBACK.MGR.AR,ARBKEY.MGR.AR)
  >EXIT

To create a new KSAM XL/64 file and copy data to it from a CM KSAM file, specify only a single file name in the TO= parameter. (KSAM XL/64 files include indexes and data records in a single file.) Enclose the new file name in parentheses to indicate that it is to be a KSAM XL/64 file. The ;NEW parameter is optional. Use this method to migrate files from an MPE V/E system to an MPE/iX system.

  :FCOPY
  >FROM=ARMSTR.MGR.AR;TO=(ARMSTR2.MGR.AR)
  >EXIT

or

  :FCOPY
  >FROM=ARMSTR.MGR.AR;TO=(ARMSTR2.MGR.AR);NEW

To copy from one KSAM XL/64 file to another existing KSAM XL/64 file, enter a single file name for the target file. (KSAM XL/64 files include indexes and data records in a single file.) Use this type of copy to back up current KSAM XL/64 files or to create a test file on an MPE/iX system.

  :FCOPY
  >FROM=ARMSTR.MGR.AR;TO=ARBACK.MGR.AR
  >EXIT

To create a new CM KSAM file and copy data to it from an existing KSAM XL/64 file, remember that both the target data file name and the target key file name must be specified. Use this type of copy for cross-development.

  :FCOPY
  >FROM=ARMSTR2.MGR.AR;TO=(ARDATA.MGR.AR,ARKEY.MGR.AR)
  >EXIT




Migrating KSAM Files


Chapter 9 KSAM Intrinsics