IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

reading same aix-key, the resp=15,resp2=140


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
xpower

New User


Joined: 07 May 2006
Posts: 35

PostPosted: Wed May 26, 2010 9:10 pm
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Wed May 26, 2010 9:14 pm
Reply with quote

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
View user's profile Send private message
xpower

New User


Joined: 07 May 2006
Posts: 35

PostPosted: Wed May 26, 2010 9:33 pm
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Wed May 26, 2010 9:40 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CICS

 


Similar Topics
Topic Forum Replies
No new posts Reading dataset in Python - New Line ... All Other Mainframe Topics 22
No new posts Find the size of a PS file before rea... COBOL Programming 13
No new posts Rexx program reading a DSN then write... CLIST & REXX 4
No new posts Reading subsequent rows in a query. DB2 12
No new posts How to convert RESP code 12 to text? CICS 9
Search our Forums:

Back to Top