Cics Questions
Cics Questions
Cics Questions
they asked me when do you used tsq's and tdq's in real time
they particularly asked me for realtime example for tsq's and tdq's
can anyone plz provide me the situation when we go for the tsq and tdq with example…
Uses of Tdq
a. message pooling and sending(use of ATI)
b. report printing(use of ATI)
Uses of TSQ
TDQ
1. ATI like someone mentioned already.
2. Used to submit JCL's from CICS (EXTRAPARTITION only)
3. Used to pass data between CICS and Batch (EXTRAPARTITION only)
TSQ
1. For file/data browsing programs (we use this extensively in our programs. Data that can be
populated in one cics map is stored as an ITEM and items are accessed as per the browse
requirements)
2. For restoring when there is CICS region crashes and downs (not much sure on this one, though)
hi,
i've never used tdq, only tsq.
i found a list of differences between them on the web, but it isn't clear enough when i should only use
a tdq.
could someone help, please?
also, any explanation about the concept of intra-partition or extra-partition would be great.
in my case i'd like to write the tdq in batch mode and read it on cics (it would have to be an extra-
partition, right) and i'm considering using the EXCI interface.
a few differences i found:
tdq items are deleted after being read;
tdq items can only be read sequentially;
tdq can't be created dinamically, but have to pre installed on cics.
thanks for any help.
Keep in mind, you can read a given item within a TSQ and rewrite it if you like, until that TSQ is
deleted.
TSQ's can be dynamically created, updated (item level only) and deleted, whereas TDQ's must be
defined as an RDO resource, either by Tech Support or your CICS System Programmer. The maximum
name length of a TDQ is four positions.
An example of an Extra-Partition TDQ defined to your system, would be CSMT, which would probably
indirectly point to DD Name MSGUSR. Look for MSGUSR in your CICS Startup and it probably points to
SYSOUT.
TSQ storage comes in two flavors - real DASD (AUX) or virtual storage (MAIN).
Answer: TSQ's utilizing MAIN storage are faster than TDQ's or AUX TSQ's.
its like they are temporary storages for holding up ur records that need to be proccessed.. they are
not physically stored mostly thats the cocept of temporary storage.....the processing is also much
faster for the queues as they are available readily in main memory when the application recollects
them.........
theres a big difference between TSQ & TDQ.........in TDQ.. the record is deleted from the queue once it
is read but whereas it does not happen with TSQs.............
**********
TSq -> Its like a scratch pad, This will not go to permanant memory
unless you explicitly specify.
This is used if you have page up/page down logic in your CICS
screens.
Program A calling Program B which selects db2 rows, So in
program B you can write all your rows fetched to a TSQ and
come back to program A, now you can read these rows from TSQ
rather than going to Db2 every time.
If you have large amount of data to be passed between to tasks
of a transaction you can use TSQ.
TDq -> if you want some processing should happen depending on the data that you have read from
the screen for example.
user wants to print the screen, take the information write it to a TDQ
this will trigger a transaction which does the printing.
Trigger level tells n indicates, after nth record is written to a TDQ it should trigger the transaction
associated with it.
Consider a case like a report has to be produced for every 500 transanctions happened for the day. A
trigger can be set with the TDQ using TRIGLVL parameter and once 500 records( from online
transactions) has been posted it will automatically submit the associated job. real time applications - (
for example in telecommunication domain...if some special privilage has to be given for first 500
customers who have taken PIONEER OFFER of Reliance ( for ex...) after the 500 th customer confirms
his transaction a report will be created through a batch job triggered by TDQ.
TSQ ---
Temporary Storage Queue names are dynamically defined in the application program,
while TDQs must first be defined in the DCT (Destination Control Table). When a TDQ
contains certain amount of records (Trigger level), a CICS transactioncan be
started automatically. This does not happen when using a TSQ. TDQ(extra partition) may
be used by batch application; TSQ cannot be accessed in batch. The Transient Data
Queue is actually a QSAM file. You may update an existing item in a TSQ. A record in a
TDQ cannot be updated. Records in TSQ can be read randomly. The TDQ can be read
only sequentially. Records in Temporary Storage can be read more than once, while
records stored in Temporary Data Queues cannot. With TDQs it is ?one read? only.
TDQ is read destructive, TSQ is not. TSQ can be created dynamically, TDQ cannot be
created dynamically. TSQ is temporary in nature (i:e it will be deleted when the program
finishes execution, unless it is made permanent by making a entry in the Temporary
Storage Table), TDQ is not.