unique and duplicate I/O error enablement for iSeriesC

If you use the unique or the duplicate file I/O error values in an EGL expression, you must enable detection of duplicate record keys for indexed files in the iSeriesC environment.

To enable this detection, you must do both of the following things:
  • Define the indexed file (or its associated physical file in the case of logical files) with the IBM® i data description specification (DDS) language, using the UNIQUE DDS file level keyword.
  • When you generate, use a resource association part. In the resource association entry for the indexed file, set the duplicates element to YES. For more information, see Resource associations part.