On 18/06/2011 07:59 AM, John Weber wrote:
All,
We are running individual CICS transactions. Each increments a counter for a
key that is written to a VSAM file. This file
Consists of a primary index as well as 6 alternate indexes. It encounters a
response code of 21 after roughly 3,000 writes. It seems
To improve in the number of successful writes with the removal of the AIX's -
one at a time.
Return code 21 is described as a 'sequence error' on write (notably sequential).
These writes are occurring in sequence but this doesn't matter because the file
is indexed.
Could this be related to storage or the VSAM definitions?
If anyone has encountered a situation like this or can make a suggestion, it
would be much appreciated.
The internet only describes the 21 but offers no reasons or resolutions for it.
Thanks...
John
P.S. Go IBM!
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html
John,
First some suppositions and a disclaimer.
1. The KSDS starts off empty at the beginning of a session. This means
you are loading the file.
2. There are multiple "concurrent" transactions updating the KSDS and AIXs.
Many eons since I did any CICS programming.
I see a possible cause of the sequence error. The first is a transaction
that starts after another actually gets to write its record first which
will cause the earlier transaction to fail with the sequence error. This
could be a pure path question or it could be caused by the AIX updates
on transaction N not be being completed before N+1 is completed.
Could you start the KSDS with a dummy record then when CICS starts
adding records it is actually updating the file and sequence no longer
matters. If you take this approach you had better provide a smalll
amount of freespace.
Ken
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html