View previous topic :: View next topic
|
Author |
Message |
xpower
New User
Joined: 07 May 2006 Posts: 35
|
|
|
|
Dear all,
I have the following file
<primary-key> <alternate key>
00001 AAA
00002 AAA
00003 BBB
then i define the aix file and path and did all of things in cics
now i use readnext using alternate key, the result occurs as follows:
resp=15,resp=140 , and i check that the error is dup-key.. Could you please how to use aix-key to retreive record avoiding occuring dup-key
Regards,
Shaw |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
Quote: |
Could you please how to use aix-key to retreive record avoiding occuring dup-key |
This cannot be done -- duplicate key means duplicate key. You can change the alternate index to not allow duplicate keys, but as long as they can occur YOUR CODE must handle the duplicate key condition itself. |
|
Back to top |
|
|
xpower
New User
Joined: 07 May 2006 Posts: 35
|
|
|
|
Thanks, Robert. by the way, if the alternate index is non-unique, and i still use it to read the record allowing dup-key, does it impact the performance of the all transaction ?? |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
I cannot imagine there's much of a performance impact -- you are reading VSAM file records, which CICS is designed to handle. There may be some impact but you'd probably have to run thousands of transactions per day to see any difference. |
|
Back to top |
|
|
|