Mainframe Path Start learning free
Production incidentIntermediate20 min

Incident: SQLCODE -811 in the account report

INC21342 · 06:10 · MPSYS
Branch report ACCTRPT failed: DSNT408I SQLCODE = -811
Product change yesterday: customers may now hold more than one account

The branch report lists every customer with their account number. Its query, written when each customer had one account, is:

Script
SELECT C.CUST_ID, C.NAME, (SELECT A.ACCT_NO FROM ACCOUNT A WHERE A.CUST_ID = C.CUST_ID) FROM CUSTOMER C

Since yesterday's product change it fails with SQLCODE -811. Run it in the SQL tab to see the error, then write a query that lists every customer, with one row per account, and customers with no account still listed.

What you will do

  1. Reproduce the -811
  2. Find who has more than one account
  3. Rewrite the query

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