Accessing MPE KSAM, Relative, and Sequential Files

You can access MPE KSAM, relative, and sequential files through HP e3000 system intrinsic functions or via standard COBOL I/O statements. If your programs use system intrinsics to access MPE files, you do not need to make any changes to your code or set any special runtime configuration variables. If your programs use standard COBOL I/O statements to access MPE files, you will need to check the setting of one or more ACUCOBOL-GT runtime configuration variables. How to configure ACUCOBOL-GT to access MPE files via standard COBOL I/O statements is discussed in the remainder of this section.

Note: ACUCOBOL-GT supports duplicate primary key values. For more information, see File-Control Paragraph.

On the HP e3000, ACUCOBOL-GT supports the following KSAM formats: KSAM XL, KSAM64, and KSAM/3000. KSAM XL and KSAM64 function in the native mode (NM) environment of the MPE/iX operating system. KSAM/3000 is an earlier MPE/iX V/E KSAM format that is used on the MPE/iX in HP's compatibility mode (CM).

The following sections describe ACUCOBOL-GT's support of MPE KSAM, relative, and sequential files on the HP e3000.