abhishek chhawcharia
New User
Joined: 21 Mar 2009 Posts: 10 Location: Ohio
|
|
|
|
Hi All,
I am getting a eibresp of 16 and eibresp2 of 28 while reading a VSAM file in CICS. I have verified that the key is getting formed correctly and the entry is also present in the vsam file before read.
Below is the code.
EXEC CICS READ DATASET ('FILE1')
INTO (FILE1-REC)
RIDFLD (FILE1-KEY)
KEYLENGTH(38)
UPDATE
LENGTH(FILE-LEN)
RESP (RESPONSE-CODE)
RESP2 (RESPONSE-CODE2)
NOHANDLE
END-EXEC
I am trying the Length, just to see if it fixes the issue.
I have same program in a program which gets executed couple of programs before this program and the read is happening correctly there and the return codes are 000000.
Any help is appreciated.
Abhishek |
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
An EIBRESP of 16 represents an "Invalid Request" (DFHRESP(INVREQ)).
With that, an EIBRESP2 of 28 explanation (from the manual) -
28
Following a READ UPDATE command without TOKEN, another
READ UPDATE without TOKEN was issued against the same file
without an intervening REWRITE, DELETE without RIDFLD specified,
UNLOCK or SYNCPOINT command. This condition may in some
cases be raised despite the fact that the first READ UPDATE was not
successful, for example because it timed out.
These exceptions can be found in the applicable CICS "Application Programming Reference" manual for your particular version/release.
The 16 and the 28 are warnings to prevent you from deadlocking yourself and raising an AFCI/AFCY abend or even an AKCS abend.
publib.boulder.ibm.com/cgi-bin/bookmgr/library |
|