Override considerations to System/36 for DDM

When a file override is issued on the iSeries™ server to get records in a logical file on a System/36™, the results might be different than expected because of the difference in how each system deals with keyed files.

An iSeries server uses access paths and logical files, which produce a single view of a file. A System/36 logical file can be considered a list of keys and relative record numbers.

When an iSeries server accesses a System/36 logical file:

The following example shows the various results for records being retrieved from a System/36 logical file by an iSeries program. The example assumes that:

Depending on the values specified on the Override with Database File (OVRDBF) command for the POSITION parameter, the following are the resulting records that are copied into the file ISERIESFILEB when it is created on the source iSeries server:

POSITION parameter (See note) Resulting records retrieved
*RRN 1 299 records, 1 through 299
*KEY 1 1 record, first record only
*RRN 299 1 record, last record only
*KEY 299 299 records, 299 through 1
*RRN 150 150 records, 150 through 299
*KEY 150 150 records, 150 through 1
Note: This column assumes only one key field for *KEY values and uses the remote file name as the default value for the record format name.