Page 1 of 1

CICS-TSQ Item error

PostPosted: Wed Nov 28, 2012 12:42 pm
by cbhargavi
Hi..
Can any body tel me what exactly item error means in Writing TSQ.

Re: CICS-TSQ Item error

PostPosted: Wed Nov 28, 2012 4:42 pm
by NicC
As this has absolutely nothing to do with DFSort it has been moved to a more appropriate forum.

Re: CICS-TSQ Item error

PostPosted: Wed Nov 28, 2012 5:59 pm
by Robert Sample
There is a link to IBM Manuals at the top of this page. If you had clicked on that link, found the CICS Application Programming Reference manual, and read the manual on READQ TS you could have easily found this:
ITEMERR
occurs in any of the following situations:

The item number specified is invalid (that is, outside the range of item numbers written to the queue).
An attempt is made to read beyond the end of the queue using the NEXT (default) option.

Default action: terminate the task abnormally.
and for WRITEQ TS you could find
ITEMERR
occurs in any of the following situations:

The item number specified in a WRITEQ TS command with the REWRITE option, is not valid (that is, it is outside the range of entry numbers assigned for the queue).
The maximum number of items (32 767) is exceeded.

Default action: terminate the task abnormally.
So the question remains -- why did you not do the little bit of effort required to find this out on your own?

Re: CICS-TSQ Item error

PostPosted: Wed Nov 28, 2012 6:08 pm
by enrico-sorichetti
why did you not do the little bit of effort required to find this out on your own?


because it is faster and less tiring to ask on a forum where sooner or later some good people
will do the cutNpaste of the info needed to solve the problem :mrgreen:

Re: CICS-TSQ Item error

PostPosted: Thu Nov 29, 2012 5:04 pm
by cbhargavi
Hi..
Actually i know about ite error but not sure..thats why i asked...
can you tel how we can resolve item error..is abnormall terination is the only possibility

Re: CICS-TSQ Item error

PostPosted: Thu Nov 29, 2012 5:22 pm
by Robert Sample
The response to the ITEMERR from the WRITEQ TS would depend upon your application. You could change the item number and try to write again (unless, of course, you've written 32767 items in which case this would not be an option), you could delete the existing TSQ and write it anew, you could generate an application error and display a screen with an error message, etc -- we cannot tell you what to do since it depends entirely upon your application and what the specifications say should happen in the case of this error. If you're getting ITEMERR on writing the first item to the TSQ, I would suspect you are not using a unique queue name for every task being executed but again the resolution would depend upon your application specifications document.

Re: CICS-TSQ Item error

PostPosted: Thu Nov 29, 2012 5:25 pm
by cbhargavi
yes may be..thank you..i will check once

Re: CICS-TSQ Item error

PostPosted: Wed Dec 26, 2012 6:47 pm
by cbhargavi
Hi...We are facing an item error while writing data to queue..Here is the part of the code.
EXEC CICS DELETEQ TS QUEUE (Qname) ;

EXEC CICS WRITEQ TS QUEUE (Qname)
FROM (SAVE_O_Q_A_PTR->CAS0011_AREA)
MAIN
LENGTH (CSTG(CAS0011_AREA))
RESP (TS_QUE_RESP);
This is throwing item error.
Here it is clearly showing Delete step..So Qname must be unique and it is also writing on main memory .And the length of writng data is also referring same length of commarea..
can any suggest what might be giving item error..

Re: CICS-TSQ Item error

PostPosted: Wed Dec 26, 2012 7:53 pm
by enrico-sorichetti
can any suggest what might be giving item error..


why don' t You try to find out Yourself by reading the manual
You were already told about the link to the manuals