MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Usage of Commarea , TSQ and TDQ

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> CICS and Middleware
View previous topic :: View next topic  
Author Message
Vinodch
Beginner


Joined: 23 Dec 2002
Posts: 80
Topics: 32
Location: Chennai, India

PostPosted: Mon Dec 23, 2002 12:29 pm    Post subject: Usage of Commarea , TSQ and TDQ Reply with quote

What is the advantage and disadvantage of using commarea , TSQ and TDQ and in what way its differ from each other?
_________________
Thanks,
Vinod.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12372
Topics: 75
Location: San Jose

PostPosted: Mon Dec 23, 2002 2:59 pm    Post subject: Reply with quote

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.

Hope this helps...

cheers

kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Vinodch
Beginner


Joined: 23 Dec 2002
Posts: 80
Topics: 32
Location: Chennai, India

PostPosted: Tue Dec 24, 2002 11:14 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12372
Topics: 75
Location: San Jose

PostPosted: Thu Dec 26, 2002 9:12 pm    Post subject: Reply with quote

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.

Hope this helps...

cheers

kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Vinodch
Beginner


Joined: 23 Dec 2002
Posts: 80
Topics: 32
Location: Chennai, India

PostPosted: Sat Dec 28, 2002 8:37 am    Post subject: Reply with quote

Kolusu

Thanks for the information.
_________________
Thanks,
Vinod.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> CICS and Middleware All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
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


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group