Specifies (for an EGL-generated COBOL program on iSeries) whether an accessed VSAM file is allowed to contain duplicate keys. Valid values are NO (the default) and YES.
The value of duplicates must be consistent with the use of the keyword UNIQUE in the data description specification (DDS) that describes the physical file on iSeries. If the value of duplicates is YES, for example, you must not specify UNIQUE.
The next table shows the consequence of an inconsistency in the two values.
DDS keyword | Value of duplicates in the association element | COBOL return code after a file open | EGL return code after a file | EGL I/O error value |
---|---|---|---|---|
UNIQUE | YES | 95 | 00000220 | format |
no UNIQUE | NO | 95 | 00000220 | format |
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.