Some CICS® application programming techniques,
notably those that pass, or obtain, addresses to shared storage, create
an affinity between transactions.
The programming techniques
that are generally unsafe are described in the following sections.
Subtopics
Using the common work area
The CWA in a CICS region is created (optionally) during
CICS initialization, exists until CICS terminates, and is not recovered
on a CICS restart (warm or emergency). The ADDRESS CWA (ptr-ref)
command provides direct addressability to the CWA.
Using GETMAIN SHARED storage
Shared storage is allocated by a GETMAIN SHARED command,
and remains allocated until explicitly freed by the same, or by a
different, task.
Using the LOAD PROGRAM HOLD command
A program (or table) that CICS loads in response to a LOAD
PROGRAM HOLD command remains in directly addressable storage until
explicitly released by the same, or by a different, task.
Sharing task-lifetime storage
The use of any task-lifetime storage belonging to one task
can be shared with another task, provided the owning task can pass
the address to the other task in the same CICS address space.
Using the WAIT EVENT command
The WAIT EVENT command is used to synchronize a task with
the completion of an event performed by some other CICS or MVS™ task.