---
title: "CICS: QUEUE Vs ITEM Top Differences"
description: "Item vs Queue top differences in CICS."
url: https://srinimf.com/2014/12/24/cics-queue-and-item-difference/
date: 2014-12-24
modified: 2026-10-10
author: "Srini"
image: https://i0.wp.com/srinimf.com/wp-content/uploads/2014/12/pexels-photo-3952084.jpeg?fit=1880%2C1255&ssl=1
categories: ["CICS Tips"]
tags: ["CICS tips and Tricks"]
type: post
lang: en
---

# CICS: QUEUE Vs ITEM Top Differences

The underlying dataset over which TS is implemented is pointed to by DFHTEMP dd-name in the CICS startup. This is a VSAM ESDS file, set up by the system’s programmer.

Related[CICS – Function Shipping](https://srinimf.com/2014/08/21/cics-function-shipping/)

---

All CICS instance wide TS queues use this one file and the application programmer need not be bothered about setting this file up.

No need to define TS queues to CICS, if you do not want them to be recoverable, or under **syncpoint **control.

**Online CEDA does not support TS queue definitions. **You have to code assembler macros and assemble and Link edit the definition into the CICS libraries. This is a system programmer / CICS administrator’s job.

QUEUE: 

This is the name of Queue 1 to the 8-byte character-set

ITEM**:** 

A halfword PIC S9(4) COMP field which specifies the item to be rewritten when REWRITE is specified.

**NUMITEMS:** 

A binary half word field that CICS sets with the number of items (including this one just written) in the queue. Not valid if ITEM is coded

**Notes on TSQ:**

1. Temporary storage queues remain intact until they are deleted by the originating task, by any other task, or by an initial or cold start; Before deletion, they can be accessed any number of times.
2. Even after the originating task is terminated, temporary data can be accessed by other tasks through references to the symbolic name under which it is stored.
3. Temporary data can be stored either in the main storage or in auxiliary storage. Generally, the main storage should be used if the data is needed for short periods of time; auxiliary storage should be used if the data is to be kept for long periods of time.
4. Data stored in auxiliary storage is retained after CICS termination and can be recovered in a subsequent restart, but data in the main storage cannot be recovered.
5. The temporary storage queues can be defined as local, remote, or shared.

References

- [References CICS TSQ-Complete Information](http://mainframe230.blogspot.in/2010/11/temporary-storage-controltsq.html)

Related Posts

- [How to Write TSQs in CICS: A Comprehensive Guide](https://srinimf.com/2017/09/14/cics-tsq-are-task-independent-why-you-need/)DateSeptember 14, 2017
- [Here’s is Real Purpose of TSQ in CICS](https://srinimf.com/2018/08/17/cics-tsq-5-top-ideas/)DateAugust 17, 2018
- [CICS – Function Shipping](https://srinimf.com/2014/08/21/cics-function-shipping/)DateAugust 21, 2014

### Share this:

-
- [Tweet](https://twitter.com/share)
- [![](https://i0.wp.com/assets.pinterest.com/images/pidgets/pinit_fg_en_rect_gray_20.png)](https://www.pinterest.com/pin/create/link/?url=https%3A%2F%2Fsrinimf.com%2F2014%2F12%2F24%2Fcics-queue-and-item-difference%2F&media=https%3A%2F%2Fi0.wp.com%2Fsrinimf.com%2Fwp-content%2Fuploads%2F2014%2F12%2Fpexels-photo-3952084.jpeg%3Ffit%3D1200%252C801%26ssl%3D1&description=CICS%3A%20QUEUE%20Vs%20ITEM%20Top%20Differences)
-
- [Share on Tumblr](https://www.tumblr.com/share)
- [Share on WhatsApp (Opens in new window) WhatsApp](https://srinimf.com/2014/12/24/cics-queue-and-item-difference/?share=jetpack-whatsapp)
- [More](#)
-

- [Print (Opens in new window) Print](https://srinimf.com/2014/12/24/cics-queue-and-item-difference/?share=print)
- [Share on Reddit (Opens in new window) Reddit](https://srinimf.com/2014/12/24/cics-queue-and-item-difference/?share=reddit)
- [Share on Telegram (Opens in new window) Telegram](https://srinimf.com/2014/12/24/cics-queue-and-item-difference/?share=telegram)
- [Email a link to a friend (Opens in new window) Email](mailto:?subject=%5BShared%20Post%5D%20CICS%3A%20QUEUE%20Vs%20ITEM%20Top%20Differences&body=https%3A%2F%2Fsrinimf.com%2F2014%2F12%2F24%2Fcics-queue-and-item-difference%2F&share=email)
-

### Like this:

Like Loading…
