Skip to content

det: batch EXEC DLI GN/GNP/DLET/CHKP + DIBSTAT for a BMP (CBPAUP0C; Part of #5857) - #5870

Merged
squid-protocol merged 1 commit into
mainfrom
churn/5857-20261021T1315Z
Oct 21, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
churn/5857-20261021T1315Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #5857 (slice 1 of #5233's CBPAUP0C box): the det side of batch EXEC DLI for a BMP.

What changed

  • det/dli.py: a BmpPcbs marker. A non-CICS program with EXEC DLI and PROCEDURE DIVISION USING io-pcb db-pcb ... is a BMP (IMS passes the I/O PCB first, PSB CMPAT=YES). GN, GNP and the writes translate as under CICS; CHKP ID(area) is new. Other CHKP forms, XRST, ROLB ... stay holes by name; CALL 'CBLTDLI' stays refused in this form.
  • det/program.py: the DIB (DIBSTAT only) for such a program; entry emits DetDli.enterBmp(io, db...).
  • DetDli.java: enterBmp, checkpoint; execPcb counts the I/O PCB (PCB(1) refused by name).
  • CBPAUP0C: no EXEC DLI / DIBSTAT hole remains.

Plan changes

  • No ENTRY 'DLITCBL' in CBPAUP0C, hence the BmpPcbs marker rather than reusing entry_pcbs.
  • cobolrt_rules.json (6th hand file, over the brief's 5) had to change: test_the_catalogue_matches_the_runtime fails otherwise. Both new methods are listed as plumbing, not rules, since the oracle twin is not linked.

Class table (EXEC DLI forms in a BMP)

Member Status
GN, GNP, DLET, ISRT/REPL (same DetDli path as CICS) translated
CHKP ID(area) translated (assumption below)
CHKP other options, XRST, ROLB, GHU hole by name
CALL 'CBLTDLI' in the USING form refused (register I5)

Assumption

A basic CHKP loses all database position (next GN starts at the beginning). No IBM text could be cited offline; stated in register I5.

Remaining slices

  1. Oracle: equivalence_ims.py accept CMPAT=YES / I/O PCB first; ggdli.c CHKP and a batch EXEC entry; equivalence.py / equivalence_cics.py rewrite batch EXEC DLI (this is also why ggdli.c is not linked yet).
  2. Equivalence case for CBPAUP0C on a stated PAUT database (PSBPAUTB / DBPAUTP0) and evidence.py prove.

Sibling gaps

  • COPAUS0C / COPAUS1C-style REPL/ISRT in batch are covered by the same path; XRST/ROLB/GHU in a BMP are unneeded by any burned program checked.

Gates

  • test_det_dli.py 133 passed (4 Docker-only skips); test_cobolrt_rules.py 60 passed; test_evidence.py 38 passed
  • pr_gates --fast 7/7; --ratchets 8/8
  • det_port check: 160/161 unchanged; carddemo-paudbunl changed only by the DetDli.java text, re-proved 73/73 PROVED
  • Golden bless not run: no parsing-logic file touched.

Cross-repo

None.

Overlap

#5842 (register I5) and #5868 (det/program.py): origin/main merged, small edits.

Lessons for agents

  • A new public method in a cobolrt Java file needs an entry in docs/language_status/cobolrt_rules.json (rule or plumbing) or test_the_catalogue_matches_the_runtime fails.
  • Any DetDli.java edit marks every DLI port CHANGED in det_port.py check; re-prove with det_port.py run <case>.

🤖 Generated with Claude Code

…G its I/O PCB (Part of #5857)

CBPAUP0C (burned CardDemo BMP) is entered PROCEDURE DIVISION USING io-pcb db-pcb.
DetDli.enterBmp binds the PCBs (PCB(n) counts the I/O PCB), DetDli.checkpoint
answers a basic CHKP ID, and the DIB (DIBSTAT) is added to a batch program.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 21, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 21, 2026 13:34
@squid-protocol
squid-protocol enabled auto-merge (squash) October 21, 2026 13:39
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

self.g = gen

def ref(self, text: str) -> E.Ref:
from gitgalaxy.tools.cobol_to_java.det.cics import CicsError
return e

def int_(self, text: str) -> str:
from gitgalaxy.tools.cobol_to_java.det.cics import CicsError
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants