View previous topic :: View next topic
|
Author |
Message |
karthick sivakumar
New User
Joined: 16 Mar 2006 Posts: 16 Location: india
|
|
|
|
Hi,
i have to process a vsam file with two alternate keys , please tell me how the dupkey conditon arises and how to handle it
regards,
karthick
|
|
Back to top |
|
|
mallikiran
New User
Joined: 07 Sep 2005 Posts: 49
|
|
|
|
If you have defined the Alternate key as not unique and if you are trying to access the file using alternate key, then I do not think you would get a duplicate key error.
How to handle any EIBRESP > 0 depends on the application's requirements and are not generic. |
|
Back to top |
|
|
arunjosephaj
New User
Joined: 21 Mar 2006 Posts: 20 Location: India
|
|
|
|
Use the keyword RESP(fieldname) in the WRITE statement.
Check if fieldname = DFHRESP(DUPKEY) |
|
Back to top |
|
|
|