DUPKDIRM (duplicate key different index)

Purpose
The function was not completed because the record sent contains a field that duplicates a key in an index different than the one being used to access the file. The other index does not allow duplicate key records.

The target returns the name of the file(s) in which the duplicate key would occur (ERRFILNM).

Code Point
The code point for this term is X'1208'.
Structure
See Reply message structure for the general structure of reply message data.
Parameter
Description
SVRCOD
Severity code
  • Code point is X'1149'.
  • Returned.
  • Enumerated value(s) for this parameter:
    8
    Error Severity Code
    16
    Severe Error Severity Code
CSRPOSST
Cursor position status
  • Code point is X'115B'.
  • Returned.
DTALCKST
Data lock status
  • Code point is X'115C'.
  • Returned.
ERRFILNM
Error file name
  • Code point is X'1126'.
  • Returned.
  • Only one Error File Name is required. Additional Error File Names may be specified if they are known.
FILNAM
File name
  • Code point is X'110E'.
  • Returned.
RECCNT
Record count
  • Code point is X'111A'.
  • Minimum value is 0.
  • Returned for requests to insert multiple records in a file.
RECNBR
Record number
  • Code point is X'111D'.
  • This is the record number of the record being operated on by the function.
SRVDGN
Server diagnostic information
  • Code point is X'1153'.
  • No information is returned.