CICS-TSQ Item error



Support for CICS/ESA, CICS/TS & Transaction Gateway, CICS Configuration Manager and CICS Performance Analyzer

CICS-TSQ Item error

Postby cbhargavi » Wed Nov 28, 2012 12:42 pm

Hi..
Can any body tel me what exactly item error means in Writing TSQ.
cbhargavi
 
Posts: 20
Joined: Mon Oct 15, 2012 5:43 pm
Has thanked: 0 time
Been thanked: 0 time

Re: CICS-TSQ Item error

 

Re: CICS-TSQ Item error

Postby NicC » Wed Nov 28, 2012 4:42 pm

As this has absolutely nothing to do with DFSort it has been moved to a more appropriate forum.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 2531
Joined: Sun Jul 04, 2010 12:13 am
Location: Down on the pig farm
Has thanked: 4 times
Been thanked: 88 times

Re: CICS-TSQ Item error

Postby Robert Sample » Wed Nov 28, 2012 5:59 pm

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?
Robert Sample
Global moderator
 
Posts: 3121
Joined: Sat Dec 19, 2009 8:32 pm
Location: Bellevue, Iowa
Has thanked: 1 time
Been thanked: 182 times

Re: CICS-TSQ Item error

Postby enrico-sorichetti » Wed Nov 28, 2012 6:08 pm

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:
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 2519
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 120 times

Re: CICS-TSQ Item error

Postby cbhargavi » Thu Nov 29, 2012 5:04 pm

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
cbhargavi
 
Posts: 20
Joined: Mon Oct 15, 2012 5:43 pm
Has thanked: 0 time
Been thanked: 0 time

Re: CICS-TSQ Item error

Postby Robert Sample » Thu Nov 29, 2012 5:22 pm

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.
Robert Sample
Global moderator
 
Posts: 3121
Joined: Sat Dec 19, 2009 8:32 pm
Location: Bellevue, Iowa
Has thanked: 1 time
Been thanked: 182 times

Re: CICS-TSQ Item error

Postby cbhargavi » Thu Nov 29, 2012 5:25 pm

yes may be..thank you..i will check once
cbhargavi
 
Posts: 20
Joined: Mon Oct 15, 2012 5:43 pm
Has thanked: 0 time
Been thanked: 0 time

Re: CICS-TSQ Item error

Postby cbhargavi » Wed Dec 26, 2012 6:47 pm

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..
cbhargavi
 
Posts: 20
Joined: Mon Oct 15, 2012 5:43 pm
Has thanked: 0 time
Been thanked: 0 time

Re: CICS-TSQ Item error

Postby enrico-sorichetti » Wed Dec 26, 2012 7:53 pm

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
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 2519
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 120 times


Return to CICS

 


  • Related topics
    Replies
    Views
    Last post