Mainframe Path Start learning free
Core10 min readLesson 4 of 4

IMS in production

IMS is operated with slash commands to display and control transactions, programs and databases. Recovery depends on image copies and logs recorded by DBRC.

IMS commands

IMS commands start with a slash and are entered from an IMS master terminal, an automation tool or the z/OS console (with the right routing). Most can be abbreviated to three letters.

CommandWhat it does
/DISPLAY TRANSACTION nameShows a transaction's status, queue count and scheduling details
/DISPLAY PROGRAM nameShows whether a program is started or stopped
/START TRANSACTION nameAllows a stopped transaction to be scheduled again
/STOP TRANSACTION nameStops scheduling; messages queue up
/DBRECOVERY DATABASE nameTakes a database offline to online IMS (for example before recovery)
/START DATABASE nameMakes the database available again

When an online program abends

If an MPP abends, IMS backs out the database updates and the input message for that unit of work. Depending on definitions, IMS may stop the transaction or program so the same message does not abend again and again. Messages then queue, visible in /DISPLAY TRANSACTION output. After the fix, operators restart with /START, and the queued messages are processed.

Backup and recovery

Reorganisation

As segments are inserted and deleted, IMS databases fragment and slow down. DBAs reorganise them on a schedule, unloading and reloading the data in hierarchical order. HALDB partitions can be reorganised one at a time, and some sites reorganise online.

Common mistakes

Restarting a stopped transaction without finding why it stopped

If a bad message caused the stop, restarting immediately can abend the program again and back out more work.

Assuming backups alone are enough

Recovery needs the image copy and the logs since it. DBRC is what ties them together; protect the RECON datasets.

Skipping reorganisations

Fragmented databases quietly slow every transaction. Watch the space and pointer statistics your DBAs report.

What you will see at work

Key terms

Check your understanding.
Take this lesson's quiz and save your progress. Free.

Take the lesson quiz
← DL/I calls from COBOLBack to IMS database and transactions