Documentos de Académico
Documentos de Profesional
Documentos de Cultura
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 There are two types of queues :
TSQS provides application programmer the ability to store and retrieve data. Application can use TSQ like a scratch pad TSQ are:
reated and deleted dynamically !o " S table entry required #if recovery !$T required% "dentified by queue id # & to ' bytes%
(ach record in TSQ identified by relative position called the Item Number
$perations:
)rite a record *ead data sequential and random +pdate ,elete the queue
Access:
Transactions Terminal
Storage :
Typical +se :
W ITEQ TS
EXEC CICS WRITEQ TS QUEUE(Q NAME) R!M(DATA"AREA) #EN$T%(DATA"&A#UE) ITEM(DATA"AREA) ' REWRITE MAIN ' AUXI#AR( END"EXEC)
eadQ TS
EXEC CICS READQ TS QUEUE(Q NAME) INT!(DATA"AREA) #EN$T%(DATA"&A#UE) ITEM(DATA"AREA) ' NEXT END"EXEC)
!elete" ts
T,Q provides the programmer with queuing facilities ,ata can be stored fro internal4e.ternal processing Stored data can be routed to symbolic destination T,Qs require , T entry "dentified by destination ", & to 5 bytes
Typical uses:
ATI (Automati* tas+ initiation ) asso*iate, -it. trigger /e0e/ Message s-it*.ing
(.tra /artitioned: associated with internal4e.ternal cics0 to any sequential dives like ,AS, TA/(
T6/" A1 +S(S :
$perations: )rite a record *ead data sequential and random ,elete the queue
AT" is the facility through which a cics transaction can be initiated automatically. T6/(8"!T*A0 ,(ST",8-S2S0 T*A!S",#-S2&%0 T*"21(98:;; )hen the number of record reaches :;;0 the transaction msg& will be initiated automatically.
,73, T
W ITEQ T!
EXEC CICS WRITEQ TD QUEUE(Q NAME) R!M(DATA"AREA) #EN$T%(DATA"&A#UE) ITEM(DATA"AREA) ' REWRITE MAIN ' AUXI#AR( END"EXEC)
E$!Q T!
Rea,s t.e 2ueue ,istra*ti0e/y1 re*or, is not a0ai/ab/e in t.e 2ueue a3ter t.e rea,) EXEC CICS READQ TD QUEUE(Q NAME) INT!(DATA"AREA) #EN$T%(DATA"&A#UE) ITEM(DATA"AREA) ' NEXT END"EXEC)
!E&ETEQ T!
T'an% (ou