Skip to main content

Avoiding storage violations in CICS


Technote (FAQ)


Question

How can you prevent storage violations in your CICS regions?

Answer

CICS provides facilities to help you prevent storage violations. When possible you should turn these facilities on, at a minimum, in your development and test environments. By catching the offenders in development and test, you can protect CICS code, control blocks, and transaction storage from being overwritten in your production regions.

Reducing storage violations can decrease down time and improve the data integrity in your regions.

Click on the following links to learn how to prevent storage violations:

Storage protection

Transaction isolation

Command protection

Reentrant program storage protection


Notes
  • These facilities protect storage from user application code. They add no benefit to a region with no user code; that is, a pure TOR or a pure FOR (where no DPL requests are function-shipped).

  • If your development and test regions are on the same LPAR as your production regions then you must use caution when turning on these facilities. In this case, it is possible that the overhead of turning on these facilities might affect the performance of your production regions.

After these facilities are activated, you will receive message DFHSR0001 reporting a protection exception (0C4) when CICS detects and prevents an attempted storage violation. The X'offset' into the program and the program name will be included in the message. Examine the program to determine why it is trying to modify storage that it is not allowed to modify. Also, make sure that you do not have an error in the transaction or program definition.

Related information

MustGather for CICS storage violations
Overhead of storage protection facilities in CICS TS

Product Alias/Synonym

CICS/TS CICS TS CICS Transaction Server

Rate this page:

(0 users)Average rating

Copyright and trademark information

IBM, the IBM logo and ibm.com are trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml.

Rate this page:


(0 users)Average rating

Add comments

Document information

CICS Transaction Server

Storage


Software version:
2.3, 3.1, 3.2, 4.1


Operating system(s):
z/OS


Reference #:
1306941


Modified date:
2012-12-04

Translate my page

Content navigation