EVALUATION

SYSB-II, VSAM RLS, and DFSMStvs: What Is the Difference?

All three let more than one address space touch a VSAM file at the same time. The difference is where the locking and recovery live, and what you have to change to get there.

VSAM RLS moves locking out of CICS and into SMSVSAM and a coupling facility. DFSMStvs adds batch commit and recovery on top of RLS. SYSB-II leaves locking and recovery inside CICS, where they already are, and routes batch I/O through it with no application changes. Each is the right answer to a different problem.

At a Glance

VSAM RLS DFSMStvs (Transactional VSAM) SYSB-II
Batch update of CICS-owned recoverable files No. Batch gets read access only Yes Yes
Application source changes CICS file definitions only Commits can be automatic from z/OS V2R4 None. JCL changes optional
Required infrastructure SMSVSAM, coupling facility, Parallel Sysplex RLS plus RRS and the system logger CICS; cross-memory, TCP/IP, or VTAM between batch and CICS
Where record locks are held Coupling facility Coupling facility CICS file control
Backout after a batch abend Restore and rerun for non-recoverable files; CICS recovery for online only TVS and RRS back out batch; CICS backs out online SYSB-II journals batch I/O through CICS; automatic backout step; online updates preserved
CPU profile Lock and buffer overhead in SMSVSAM Higher: logging, two-phase commit, lock checks I/O path stays inside CICS; batch runs as CICS tasks you prioritize

VSAM RLS: Sharing Between CICS Regions

Record-Level Sharing was built so multiple CICS regions, across LPARs in a Parallel Sysplex, could update the same recoverable VSAM files with record-level locks. SMSVSAM owns the buffers and the locks; the coupling facility holds the shared state. For CICS-to-CICS sharing it does that job well.

What RLS does not do is let a batch job update a recoverable file while CICS has it open. Batch gets read access with integrity, and that is all. For batch updates to recoverable files, sites are back to closing files, shadow copies, or memo posting. Batch can update files defined as non-recoverable, but then nobody owns integrity: after a batch abend you restore to a point in time and lose every CICS update made since.

DFSMStvs: Extending RLS to Batch

Transactional VSAM exists to close that gap. SMSVSAM and the coupling facility still manage locks. TVS, working with Resource Recovery Services, manages syncpoints and backout for the batch side. DFSMStvs, built on VSAM RLS, lets batch update recoverable files while CICS has them open. From z/OS V2R4 it can commit automatically every set number of updates.

There is a runtime cost as well. IBM’s planning guide notes a noticeable increase in processor use from logging, two-phase commit, and lock checking, along with longer batch elapsed times and possibly slower CICS response on TVS-defined files.

SYSB-II: Sharing Inside CICS

SYSB-II intercepts the batch program’s VSAM requests through the documented MVS subsystem interface and function-ships them to the CICS region that owns the file, the same way CICS regions function-ship to each other. The batch step keeps running in its own address space. The I/O runs as CICS tasks.

Because the I/O runs inside CICS, CICS file control does the locking. CICS journals the batch updates alongside online updates. Syncpoints, which SYSB-II can take at a configurable interval without code changes, release records back to online users. When a job abends, a backout step reverses the batch unit of work and leaves online updates in place. No RLS, coupling facility, or RRS is required, although SYSB-II coexists with all of them.

Side by Side

On batch update of CICS-owned recoverable files: RLS says no, DFSMStvs says yes, SYSB-II says yes.

On application changes: RLS touches CICS file definitions only. For DFSMStvs, commits can be automatic from z/OS V2R4. SYSB-II requires none; JCL changes are optional.

On infrastructure: RLS needs SMSVSAM, a coupling facility, and a sysplex. DFSMStvs adds RRS and the system logger. SYSB-II needs CICS and a communication path: cross-memory, TCP/IP, or VTAM.

On packaged applications without source, such as Hogan, OmniPlus, or CAPSIL: RLS helps on the CICS side only. SYSB-II works as it does for any other batch program.

When Each One Is Right

Choose RLS when the problem is CICS-to-CICS sharing across a sysplex and batch rarely updates those files. Choose DFSMStvs when you are already on RLS and want an all-IBM stack. Choose SYSB-II when the goal is keeping CICS up while batch updates the same files, and you want recovery to behave the way CICS recovery already does.

These are not mutually exclusive. RLS and SYSB-II can run side by side.

Batch tuning, SHAREOPTIONs, shadow files, memo posting, and EXCI are covered in Which Tools Actually Reduce or Eliminate the Mainframe Batch Window?, and H&W’s white papers go deeper on the alternatives for concurrent VSAM access and on how VSAM RLS works.

The SYSB-II FAQ answers the questions teams ask most, including how SYSB-II works with RLS, CICSplex, and Parallel Sysplex.

About H&W

H&W has been helping our customers solve this issue for over 30 years. To talk with us about your situation: