Hi,
I am getting ITEMERR when my CICS module reads TS Queue.
EXEC CICS READQ TS
QUEUE (QUEUE NAME)
INTO (WORKING VARIABLE)
LENGTH (TSQ-LENGTH)
RESP (RESP-CD)
RESP2 (ESP2-CD)
END-EXEC
EIBRESP throws 26, which is ITEMERR, As per my search 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.
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.
Mine is READQ, and i didn't use any NEXT to read beyond end of the queue. Can you guide me what else would have caused the trouble?
ITEMERR in TSQ Read
-
- Posts: 4
- Joined: Fri Jan 27, 2023 8:24 pm
- Skillset: Mainframe - COBOL, JCL, VSAM, CICS, TELON, Eztrieve
Tools - Endevor, Xpeditor, FileAid, CA7, ESP, Abend Aid
DB - DB2 - Referer: Since I Love to Learn Mainframe
Re: ITEMERR in TSQ Read
Don’t you need to specify ITEM?
-
- Posts: 4
- Joined: Fri Jan 27, 2023 8:24 pm
- Skillset: Mainframe - COBOL, JCL, VSAM, CICS, TELON, Eztrieve
Tools - Endevor, Xpeditor, FileAid, CA7, ESP, Abend Aid
DB - DB2 - Referer: Since I Love to Learn Mainframe
Re: ITEMERR in TSQ Read
I don't think so. I didn't see anything which defined the item.
-
- Posts: 4
- Joined: Fri Jan 27, 2023 8:24 pm
- Skillset: Mainframe - COBOL, JCL, VSAM, CICS, TELON, Eztrieve
Tools - Endevor, Xpeditor, FileAid, CA7, ESP, Abend Aid
DB - DB2 - Referer: Since I Love to Learn Mainframe
Re: ITEMERR in TSQ Read
Those are options, not mandatory to use. My logic didn't use those options. That's what surprising why it throws ITEMERR even no item /net were used.
-
- Global moderator
- Posts: 3720
- Joined: Sat Dec 19, 2009 8:32 pm
- Skillset: Systems programming, SAS, COBOL, CICS, JCL, SMS, VSAM, etc.
- Referer: other forum
- Location: Dubuque, Iowa, USA
Re: ITEMERR in TSQ Read
If you read the syntax diagram in https://www.ibm.com/docs/en/cics-ts/5.5 ... y-readq-ts you will see that you can specify NEXT or you can specify ITEM(data value). The syntax diagram is written such that you MUST specify one of them. If you don't specify either one, the ITEMERR makes sense -- you haven't done anything to specify from where to do a NEXT, and you haven't specified an ITEM number.
-
- Posts: 4
- Joined: Fri Jan 27, 2023 8:24 pm
- Skillset: Mainframe - COBOL, JCL, VSAM, CICS, TELON, Eztrieve
Tools - Endevor, Xpeditor, FileAid, CA7, ESP, Abend Aid
DB - DB2 - Referer: Since I Love to Learn Mainframe
Re: ITEMERR in TSQ Read
Thanks Rob, This is the logic implemented long back and working well since then (Late 90's). All of a sudden throwing ITEMERR, which is what surprising me. Let me check. Thanks.
-
- Similar Topics
- Replies
- Views
- Last post
-
- 3
- 7908
-
by socker_dad
View the latest post
Thu Jan 28, 2021 4:13 am
-
- 2
- 1457
-
by naga821
View the latest post
Fri Oct 28, 2022 7:31 pm
-
- 11
- 3721
-
by Pedro
View the latest post
Tue Dec 27, 2022 11:24 am
-
- 2
- 4016
-
by zbius
View the latest post
Wed Nov 06, 2024 2:16 pm
-
-
Can i read output file created after SORTing in the same pgm
by savitha_y » Sat Feb 06, 2021 1:17 am » in IBM Cobol - 4
- 1622
-
by savitha_y
View the latest post
Tue Feb 09, 2021 7:11 pm
-