Mainframe Path Start learning free
Production incidentIntermediate15 min

Incident: SQLCODE -532 removing a duplicate customer

INC22150 · 11:20 · MPSYS
Data clean-up script failed: DSNT408I SQLCODE = -532
Highmoor branch: Gita Datasett was set up twice on Monday

On Monday the Highmoor branch set up Gita Datasett again as C00016, although she has been customer C00007 since 2023. The data team's clean-up script is:

Script
DELETE FROM CUSTOMER  WHERE CUST_ID = 'C00016'

It failed with SQLCODE -532. Find out why, and finish the clean-up so that Gita has one customer record and nothing she owns is lost.

What you will do

  1. Run the script and read the -532
  2. Find what still points at C00016
  3. Finish the clean-up without losing her money or history

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