Both are used to save data among tasks. But 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 QID is known, can be accessed by other transactions also. commarea length is s9(4) comp I.e., 65k . but TSQ can have any length.
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.
Normally commarea is used to transfer data from one task to another while TSQ is used widely within the task as a scratch pad.
Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!