EVALUATION

Which Tools Actually Reduce or Eliminate the Mainframe Batch Window?

Every z/OS shop that runs CICS against VSAM has a batch window. Most have spent years trying to make it smaller. Faster sorts, more buffers, parallel job streams, a better scheduler. The window shrinks a little, then transaction growth takes the gain back.

The reason is structural. A VSAM file can be owned for update by one address space at a time. CICS owns it all day. When nightly batch needs to post transactions, operations closes the file in CICS or brings the region down, batch updates it, and CICS gets it back in the morning. Those hours are the batch window. Every tool on the market is a different answer to one question: who owns the file while batch runs?

The Seven Approaches

Approach What it does Application changes New infrastructure Result
Batch tuning and scheduling Faster sorts, more buffers, better job dependencies, parallel streams None None Shortens the window; the window still exists
VSAM SHAREOPTIONs Lets regions read while another updates (SHAREOPTION 2) or update concurrently with no locking (SHAREOPTION 3) None None Readers see stale or broken data; SHAREOPTION 3 risks data loss
Shadow files and memo posting Online users work on a copy while batch updates the real file Some Extra DASD Users see yesterday’s data and cannot post updates; reconciliation afterward
EXCI or rewriting batch as CICS transactions Batch calls CICS programs to do the I/O Heavy None Full concurrency; every batch program redesigned and retested
VSAM RLS SMSVSAM and a coupling facility manage record locks across regions CICS file definitions Coupling facility, Parallel Sysplex Good for CICS-to-CICS sharing; batch still cannot update recoverable files
DFSMStvs (Transactional VSAM) Extends RLS so batch can update recoverable files with syncpoints via RRS Commits can be automatic from z/OS V2R4 RLS, coupling facility, RRS, system logger Files stay open to CICS during batch, at the cost of extra CPU
Transparent file sharing through CICS (SYSB-II) Intercepts batch VSAM calls and ships them to the CICS region that owns the file None None; works with or without RLS Files stay open to CICS during batch; batch runs as CICS tasks with CICS integrity and journaling

Tools That Reduce the Window

Batch tuning and scheduling products do real work. Better job dependencies, sort optimization, and buffer tuning routinely take 10 to 30 percent off a nightly run. They are worth doing, but they leave the window in place. One late input file or one long-running step and the morning is gone.

VSAM SHAREOPTIONs look like a free fix. SHAREOPTION 2 lets regions read while another updates, but readers can see stale or partially written data and may abend. SHAREOPTION 3 allows concurrent updates with no locking, which is a data-integrity problem waiting for a bad night. Neither is a serious answer for files that hold money.

Shadow files and memo posting keep screens up by pointing online users at a copy while batch updates the real file. Users see yesterday’s data and cannot post the updates they came to make. Someone still has to reconcile the two copies afterward.

Tools That Keep the Files Open

Three approaches let batch update a file while CICS keeps it open.

The first is to rewrite batch so it calls CICS programs to do the I/O, through EXCI or by converting batch logic into CICS transactions. It works, and IBM supports it well. It also means redesigning and retesting every batch program that touches a shared file. For applications written decades ago, or for packaged software like Hogan, OmniPlus, or CAPSIL where the source is not yours, that path is closed.

The second is DFSMStvs, Transactional VSAM. Built on VSAM RLS, it lets batch update recoverable files with syncpoints coordinated through RRS. The infrastructure is substantial: RLS, a coupling facility, the system logger. From z/OS V2R4, DFSMStvs can commit automatically every set number of updates. IBM’s own planning guide notes measurable CPU increases from logging, two-phase commit, and lock checking.

The third is transparent file sharing through CICS. SYSB-II, from H&W Computer Systems, intercepts a batch program’s VSAM requests at the subsystem level and ships them to the CICS region that owns the file. Batch becomes just another CICS task: same locking, same journaling, same syncpoints. CICS never closes the file. No source changes, no RLS or coupling facility required, and implementation happens one file, one step, or one job at a time. TIAA cut its batch window in half with SYSB-II and its own process improvements, and running e-delivery updates during the day with SYSB-II took almost two hours off Broadridge’s nightly cycle. One retirement services provider now posts a million cash transactions during the day instead of at night.

SYSB-II, VSAM RLS, and DFSMStvs: What Is the Difference? compares the second and third approaches, and RLS, in more detail.

Which z/OS and CICS Versions Does This Kind of Software Support?

A file-sharing tool should run on every IBM-supported release of z/OS and CICS Transaction Server, and it should support new releases on day one. The architecture decides that. If the CICS side is an ordinary command-level CICS transaction, and the batch side uses the documented MVS subsystem interface rather than operating-system hooks, the product stays compatible as IBM ships new versions.

SYSB-II is built that way. It runs on current releases of z/OS and CICS Transaction Server. It works in single-LPAR, multi-LPAR, CICSplex, and Parallel Sysplex configurations, with or without RLS. Batch and CICS communicate through cross-memory services when they share an LPAR, and through TCP/IP or VTAM when they do not. For the current support matrix with specific release levels, contact H&W.

Choosing

Start with one question: do you have the source code, the developers, and the test cycles to rewrite batch? If yes, EXCI is a legitimate engineering path. If no, you need a tool that moves the I/O rather than the application.

Tuning shortens the window. Sharing keeps the files open through it. Many shops do both, in this order: share the files that cause the most friction, then re-sequence the schedule once the window no longer dictates it.

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, from how SYSB-II works to which releases it supports.

About H&W

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