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

when and how to hanle dupkey condition?


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

New User


Joined: 16 Mar 2006
Posts: 16
Location: india

PostPosted: Tue Mar 28, 2006 9:44 am
Reply with quote

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
icon_confused.gif
Back to top
View user's profile Send private message
mallikiran

New User


Joined: 07 Sep 2005
Posts: 49

PostPosted: Wed Apr 19, 2006 8:50 pm
Reply with quote

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

New User


Joined: 21 Mar 2006
Posts: 20
Location: India

PostPosted: Tue May 16, 2006 5:19 pm
Reply with quote

Use the keyword RESP(fieldname) in the WRITE statement.
Check if fieldname = DFHRESP(DUPKEY)
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 How to give complex condition in JCL . CLIST & REXX 30
No new posts selectively copy based on condition DFSORT/ICETOOL 3
This topic is locked: you cannot edit posts or make replies. Control-m JOB executing even when the... Compuware & Other Tools 6
No new posts Dynamic condition checks COBOL Programming 5
No new posts Extract 2 more lines below line that ... DFSORT/ICETOOL 2
Search our Forums:

Back to Top