kkumarv
New User
Joined: 13 May 2005 Posts: 20 Location: Bangalore/India
|
|
|
|
Both TSQ AND COMMAREA are used to save data among tasks.
1. COMMAREA is private to that transaction only . like every transaction has its own COMMAREA created by CICS as soon as the transaction is initiated . however TSQ , if queue id is known can be accessed by other transactions also
2. COMMAREA length is s9(4) comp i.e. 65k . but TSQ can have any length.
3. COMMAREA is available only during the transaction is running. TSQ if created with auxiliary option resides in aux memory and available even if main memory crashes.
4.normally COMMAREA is used to transfer data from one task to another while tsq is used widely within the task as a scratch pad.
So commarea is good only within the same transaction is running also it has limtation on length of data that can be passed whereas in TSQ
there is no such limitation of memory size and and access within single transaction. |
|