Anda di halaman 1dari 13

QUEUES

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

Temporary Storage Queue (TSQ)


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

Temporary Storage Queue (TSQ)


" " " " " " " " " " "

WRITE OPERATION FORMAT EXEC CICS WRITEQ TS QUEUE('QNAME') FROM(DataName) LENGTH(DataName) [MAIN / AUXILIARY] [ITEM(DataName)] END-EXEC.

Temporary Storage Queue (TSQ)


READ OPERATION
FORMAT EXEC CICS READQ TS QUEUE('QNAME') INTO(DataName) LENGTH(DataName) [NEXT / ITEM(DataName)] END-EXEC.

Temporary Storage Queue (TSQ)


" " " " " " " " " " "

REWRITE OPERATION FORMAT EXEC CICS WRITEQ TS QUEUE('QNAME') FROM(DataName) LENGTH(DataName) REWRITE ITEM(DataName) END-EXEC.

Temporary Storage Queue (TSQ)


" " "

DELETE OPERATION
FORMAT EXEC CICS DELETEQ TS QUEUE('QNAME') END-EXEC.

"
" " "

"

Note : Delete the entire Q from the System not a single item (record)

Transient Data Queue (TDQ)


Transient Data Queue (TDQ)
" " " "

"
" " " " " "

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

"

Transient Data Queue (TDQ)


"

Intra-partitioned - association within the same CICS subsystem


Typical uses are - ATI (Automatic Task Initiation ) associated with trigger level - Message switching etc

"

Extra-partitioned - association external to the CICS subsystem, Can associate with any sequential
device - Tape, DASD, Printer etc

Transient Data Queue (TDQ)


" " " " " " " " "

WRITE OPERATION
FORMAT EXEC CICS WRITEQ TD QUEUE('QNAME') FROM(DataName) [LENGTH(DataName)] END-EXEC.

Transient Data Queue (TDQ)


LENGTH is optional based on the Q type
If it is Intra Partition TDQ Length is must where as Extra Partition TDQ Length is not required

Transient Data Queue (TDQ)


" " " " " " " " " "

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

Transient Data Queue (TDQ)


" " "

DELETE OPERATION
FORMAT EXEC CICS DELETEQ TD QUEUE('QNAME') END-EXEC.

"
" " "

"

Note : Delete the entire Q from the System not a single item (record)

The important differences between Temporary Storage Transient Data


"

Data is read randomly.

Data must be read sequentially.


"

A data item can be read many times and it remains in the queue until the entire queue is purged.
" "

A data item can be read once.


"

Data can be changed.

"

Data cannot be changed.

Temporary storage can be written to auxiliary or main storage.


"

Transient data items are always written to disk.


"

Anda mungkin juga menyukai