Professional Documents
Culture Documents
Cics Trianing Class 07
Cics Trianing Class 07
www.mainframes-online-training.weebly.com
Introduction to QUEUES
Queues are temporary storages for holding up records that need
to be processed. They are not physically stored.
The processing is much faster for the queues as they are available
readily in main memory
WRITEQ TS
ReadQ TS
EXEC CICS READQ TS
QUEUE(Q NAME)
INTO(DATA-AREA)
LENGTH(DATA-VALUE)
ITEM(DATA-AREA) | NEXT
END-EXEC.
Deleteq ts
Typical uses:
ATI (Automatic task initiation ) associated with trigger
level
Message switching
TYPICAL USES :
DFHDCT
TYPE=INTRA,
DESTID=MSGS,
TRANSID=MSG1,
TRIGLEV=500
When the number of record reaches 500, the transaction MSG1 will be
initiated automatically.
WRITEQ TD
EXEC CICS WRITEQ TD
QUEUE(Q NAME)
FROM(DATA-AREA)
LENGTH(DATA-VALUE)
ITEM(DATA-AREA)
END-EXEC.
READQ TD
Reads the queue distractively, record is not available in the queue after the
read.
EXEC CICS READQ TD
QUEUE(Q NAME)
INTO(DATA-AREA)
LENGTH(DATA-VALUE)
NEXT
END-EXEC.
DELETEQ TD
Thank You