Interview Questions   Tutorials   Discussions   Programs   

CICS - What is the common work area (CWA)?

asked mar August 18, 2014 12:16 PM  

What is the common work area (CWA)?


1 Answers

answered By Mswami   0  
The common work area (CWA) is a single control block that is allocated at system startup time and exists for the duration of that CICS session. The size is fixed, as specified in the system initialization parameter, WRKAREA. The CWA has the following characteristics:

There is almost no overhead in storing or retrieving data from the CWA. Command-level programs must issue one ADDRESS command to get the address of the area but, after that, they can access it directly.
  •  Data in the CWA is not recovered if a transaction or the system fails.
  •  It is not subject to resource security.
  •  CICS does not regulate use of the CWA. All programs in all applications that use the CWA must follow the same rules for shared use. These are usually set down by the system programmers, in cooperation with application developers, and require all programs to use the same "copy" module to describe the layout of the area.

You must not exceed the length of the CWA, because this causes a storage violation. Furthermore, you must ensure that the data used in one transaction does not overlay data used in another. One way to protect CWA data is to use the storage protection facility that protects the CWA from being written to by user-key applications.

The CWA is especially suitable for small amounts of data, such as status information, that are read or updated frequently by multiple programs in an application.

The CWA is not suitable for large-volume or short-lived data because it is always allocated.
   add comment

Your answer

Join with account you already have



 Write A Tutorials
Online-Classroom Classes

  1 person following this question

  Question tags

cics × 1

Asked 3 years and 1 month ago ago
Number of Views -312
Number of Answers -1
Last updated
4 years and 2 months ago ago

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!