EGL Reference Guide for iSeries
For an indexed or relative record, duplicate is set in these
cases:
- An add statement tries to insert a record whose key or record ID
already exists in the file or in an alternate index, and the insertion
succeeds.
- A replace statement overwrites a record successfully, and the
replacement values include a key that is the same as the alternate-index key
of another record.
- A get, get next, or get previous statement
reads a record successfully (or a set statement of the form set
record position runs successfully), and a second record has the same
key.
The duplicate setting is returned only if the access method
returns the information, as is true on some operating systems but not on
others. The option is not available during SQL database access.
If you are accessing an emulated VSAM file from an EGL-generated COBOL
program on iSeries, see Association elements for a description of
the duplicates property in the resource associations part that is
used at generation time.
[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.