Professional Documents
Culture Documents
Agenda
Transient Queues
What are transient data Q’s and explain the usage of the same
Explain use of CEBR command and how to use it.
Introduction
Introduction cont..
The records in TSQ once written remain accessible until the entire
TSQ is explicitly deleted. They can be read , repeatedly read and
even updated.
TSQ regardless of where it resides can be accessed by any
transaction in the same CICS region.
3. Same transaction
From same terminal
From different terminal
4. Different transaction
From same terminal
From different terminal
Types of TSQ’s
Q id
The terminal id should be included (for terminal dependent
Task, pseduconversational) in Q id in order to ensure that
TSQ is unique to that task. If TSQ has to be shared then we
can use COMM in place of Term id
Commands Available:
WRITEQ TS - To write or rewrite a record in TSQ
WRITEQ - (with rewrite option)- Update a record
READQ TS - To read a record in a TSQ
DELETEQ TS - To delete a TSQ (all records will be deleted)
Practical example
Each sales agent runs an application (on transaction A) and confirms sales to
customers in real time to preserve critical response times
Each transaction adds the data associated with the sale orders to queues for
later processing
The larger task of processing the order is split into billing, shipping, and
updating inventory applications
These applications run separately from the initial order-taking application,
as transactions on transaction B. These transactions dequeue the data that
they are to process.
Practical use of TSQ’s
Scrollable screens
Flow diagram cont..
Scrollable screens
In Brief
Intrapartition TDQ’s:
Interface among CICS screens
Appli. Prog. 1--->TDQ--->Appli prog2--->reports
Automatic task initiation
Extrapartition TDQ’s:
Interface to Batch TSO
CICS prog -->TDQ--> File---> Batch Prog
Interface from batch
Batch prog----> file--->TDQ---->CICS Appli Prog
Automatic task initiation
Elements in temporary storage queues can be Transient data queues must be read
read either sequentially or directly. They can be sequentially, and each element can be read
read any number of times and are never only once. (After a transaction reads an
removed from the queue until the entire queue element, that element is removed from the
is purged queue and is not available to any other
transaction.)
An application uses TSQ 's to pass info' from While a TDQ to accumulate records before
task to task processing or send data for external use,
such as a print operation or other
Browsing Queue: CEBR
How are we Benefited?
3. We also now know that the technique coded once can act as
reusable component in future programs involving same technique.