QUEUE is a Temporary Storage for holding information between the task. It is mainly used for the Reporting operation. TYPE OF QUEUE 1. Temporary Storage Queue (TSQ) 2. Transient Data Queue(TDQ) i. Intra Partitioned ii. Extra Partitioned
1. Temporary Storage Queue (TSQ) a) It is created within an application program. b) It may written in the MAIN or AUXILIARY STORAGE. c) It is identified by the 1 to 8 character Qname. d) Qname 1 to 8 character can be register in TST (Temporary Storage Table) f) Data operation control by the only CICS application program e) Write operation in sequential but in the case of Read operation can be sequential or direct
WRITE OPERATION FORMAT EXEC CICS WRITEQ TS QUEUE('QNAME') FROM(DataName) LENGTH(DataName) [MAIN / AUXILIARY] [ITEM(DataName)] END-EXEC.
REWRITE OPERATION FORMAT EXEC CICS WRITEQ TS QUEUE('QNAME') FROM(DataName) LENGTH(DataName) REWRITE ITEM(DataName) END-EXEC.
DELETE OPERATION
FORMAT EXEC CICS DELETEQ TS QUEUE('QNAME') END-EXEC.
"
" " "
"
Note : Delete the entire Q from the System not a single item (record)
"
" " " " " "
a) It is created within an CICS application program or out side the application program b) It must written in the AUXILIARY STORAGE. c) It is identified by the 1 to 4 character Qname. d) Qname 1 to 4 character must be register in DCT (Destination Control Table) e) Write & Read operation in sequential order f) Data operation control by the CICS application program as well as any other application program based on Q type
"
"
Extra-partitioned - association external to the CICS subsystem, Can associate with any sequential
device - Tape, DASD, Printer etc
WRITE OPERATION
FORMAT EXEC CICS WRITEQ TD QUEUE('QNAME') FROM(DataName) [LENGTH(DataName)] END-EXEC.
READ OPERATION FORMAT EXEC CICS READQ TD QUEUE('QNAME') INTO(DataName) LENGTH(DataName) END-EXEC.
NOTE : After reading record from Q the record is removed (delete)from the Q
DELETE OPERATION
FORMAT EXEC CICS DELETEQ TD QUEUE('QNAME') END-EXEC.
"
" " "
"
Note : Delete the entire Q from the System not a single item (record)
A data item can be read many times and it remains in the queue until the entire queue is purged.
" "
"