Joined: 26 Nov 2002 Posts: 12372 Topics: 75 Location: San Jose
Posted: Mon Dec 23, 2002 2:59 pm Post subject:
Vinodch,
COMMAREA is used to pass data between programs and regions.Check this link for Passing data to other programs using Commarea.If all of the data will fit in a commarea, data access will be faster than using a TSQ, since no EXEC CICS is required to read/write the data. Also, since access to the commarea does not give CICS control via EXEC CICS, there is no opportunity to 'interrupt' your program processing, and with fewer interrupts your transaction will run faster 'on the clock'. Also, if you need to pass data between CICS regions, doing it in a commarea will be faster than doing it in a TSQ.
A TSQ is a Temporary Storage Queue and is a temporary flat file created in main or auxiliary storage. It can be created dynamically, deleted, read, written, or re-written at will. Reads and writes can be sequential or direct by item number and rewrite ( update ) is also available. Data remains in the TSQ after reading.
A TDQ is a Transient Data Queue and is a pre-defined dataset which cannot be created or deleted dynamically and can only be read or written sequentially. Also, a record is DELETED from TDQ as soon as it has been read.TDQ is written to Disk.There are 2 types of TDQ's. Intra Partition TDQ & Extra partition TDQ.
Joined: 23 Dec 2002 Posts: 80 Topics: 32 Location: Chennai, India
Posted: Tue Dec 24, 2002 11:14 am Post subject:
Kolusu
Thanks for the detailed update
The INPUTMSG option of the LINK, XCTL, and RETURN commands is same as COMMAREA to specify the name of a data area to be passed to the program being invoked but its infrequently used. Please explain the reason for the same.
Please let me know the storage restriction for Commarea , TSQ and TDQ _________________ Thanks,
Vinod.
Joined: 26 Nov 2002 Posts: 12372 Topics: 75 Location: San Jose
Posted: Thu Dec 26, 2002 9:12 pm Post subject:
Vinodch,
The theoretical upper limit for COMMAREA is 32,763 bytes.However to be safe, you should not exceed 24KB, because of a number of factors that can reduce the limit from the theoretical maximum.
The maximum length of an TSQ item is 32763, and the maximum number of items is 32767.However, in practise these limits are usually irrelevant, and how much space you can use depends on the particular CICS region .There is a logical limit of 32K items per TSQ, but for all practical purposes the limit will be less because of storage limits for your application / region and whether you assign the TSQ to MAIN or AUX storage.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum