Mainframe Path Start learning free
Production incidentIntermediate15 min

Incident: SQLCODE -803 in the branch migration

INC22045 · 08:30 · MPSYS
Branch migration script failed: DSNT408I SQLCODE = -803
The Ashford Vale branch says its three new customers 'are in'

The Ashford Vale branch is moving its customers onto the central CUSTOMER table. Their script is:

Script
INSERT INTO CUSTOMER VALUES  ('C00004', 'Dov Cylinder', 'Highmoor', 'B', '2018-11-05'),  ('C00013', 'Mira Spoolwright', 'Ashford Vale', 'R', '2026-10-19'),  ('C00014', 'Otto Jesson', 'Port Mallow', 'R', '2026-10-19'),  ('C00015', 'Pia Catalogue', 'Kestrel Bay', 'P', '2026-10-20')

It failed with SQLCODE -803. The branch believes the three new customers were added anyway. Find out what happened and get the new customers on the table without damaging existing data.

What you will do

  1. Run the script and read the -803
  2. Find the row that already exists
  3. Add only the new customers

Simulated: the Lab runs entirely in your browser on a simulated, fictional z/OS system. Nothing is sent to or run on a real mainframe.

Free, no account needed.
Your work is saved on this device; sign in to keep it in your account.

Start in the Lab