View previous topic :: View next topic
|
Author |
Message |
anirudh1985 Currently Banned New User
Joined: 22 Aug 2007 Posts: 66 Location: bangalore
|
|
|
|
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 |
|
|
Earl
Active User
Joined: 17 Jun 2007 Posts: 148 Location: oklahoma
|
|
|
|
aix requires a path file to be defined in CICS. Your CICS systems group
should be able to help you. |
|
Back to top |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
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 |
|
|
|