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

VSAM CICS ABEND INVREQ


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

New User


Joined: 22 Aug 2007
Posts: 66
Location: bangalore

PostPosted: Thu Dec 27, 2007 10:49 am
Reply with quote

I have a CICS-VSAM application which accesses two 2 VSAM files. We added an AIX to one of them:

1) The program has a STARTBR and a READ NEXT Commands referring the file. Now, if we have added AIX the RID fld would be changing. Can anyone indicate me how to use with AIX.

2) Will there be any necessity to code in FILE-CONTROL as its an CICS-VSAM appliation?
Please help us out in implementing the AIX for the second file.

The following statements would be helpful for your reference:
EXEC CICS
STARTBR FILE('VIDMAST')
RIDFLD(CM-CUSTOMER-NUMBER)
KEYLENGTH(07)
EQUAL
RESP(RESPONSE-CODE)
END-EXEC.

VIDMAST (logical file entry in FCT)is the VSAM file to which AIX was added

CM-CUSTOMER-NUMBER is the Alternate Key.Now the query is whether we can use this in RID field

EXEC CICS
READNEXT FILE('VIDMAST')
RIDFLD(CM-CUSTOMER-NUMBER)
INTO(VIDEO-MASTER-RECORD)
RESP(RESPONSE-CODE)
END-EXEC.


Regards,
Anirudh
Back to top
View user's profile Send private message
Earl

Active User


Joined: 17 Jun 2007
Posts: 148
Location: oklahoma

PostPosted: Mon Dec 31, 2007 3:55 am
Reply with quote

aix requires a path file to be defined in CICS. Your CICS systems group
should be able to help you.
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Tue Jan 15, 2008 7:44 am
Reply with quote

Is this a UNIQUE or non-UNIQUE alternate-key? If it's non-UNIQUE, then the DUPKEY condition will be raised, but you need to either handle this using the RESP (or NOHANDLE) parameter of the API or by specifying an IGNORE CONDITION DUPKEY END-EXEC statement.

If DUPKEY is raised on a UNIQUEKEY, then this is an error.

When an error condition is raised, in particular ILLOGIC, the first three-bytes of EIBRCODE provides you with a wealth of information, in regards to actual VSAM return-codes, error-codes and reason-codes.

Regards,

Bill
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 Using API Gateway from CICS program CICS 0
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts ISAM and abend S03B JCL & VSAM 9
No new posts Calling an Open C library function in... CICS 1
No new posts How to 'Ping' a CICS region in JCL CICS 2
Search our Forums:

Back to Top