Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
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    Post subject: reading same aix-key, the resp=15,resp2=140
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: 8000
Location: Bellevue, IA

PostPosted: Wed May 26, 2010 9:14 pm    Post subject:
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    Post subject:
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: 8000
Location: Bellevue, IA

PostPosted: Wed May 26, 2010 9:40 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Problem reading GTF trace output danik56 ABENDS & Debugging 7 Thu Mar 16, 2017 1:02 pm
No new posts Reading data from PS file and send it... rajatbagga All Other Mainframe Topics 18 Fri Sep 23, 2016 12:51 pm
No new posts Reading selected volumes of a multi-v... RickBig JCL & VSAM 6 Wed Jul 13, 2016 7:26 pm
No new posts Reading from File 1 and Writing to Fi... shiitiizz CLIST & REXX 2 Thu May 14, 2015 5:49 pm
No new posts WRITEQ SYSIDERR RESP 53 krish2309 CICS 5 Fri May 08, 2015 10:25 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us