Repository navigation
Mainframe fact channel: IMS PSB / DBD definitions and the access check (#3477) - #3483
Merged
Merged
Conversation
#3477) PSB and DBD generation members (.psb / .dbd, scanned as hlasm) and JCL DFSRRC00 region steps become ims_gen_data rows (core/ims_gen.py): PSBGEN, PCB, SENSEG, DBD, SEGM, FIELD, LCHILD, DATASET, REGION, with column-72 continuations. GalaxyIR adds ims_psbs, ims_databases, ims_program_psbs (region PARM by PROGRAM-ID, or EXEC DLI SCHD PSB through its VALUE) and ims_access_check: each #3450 segment access checked against the PSB's SENSEGs and PROCOPT (ok / denied / not_sensitive / no_psb). Answer key: independent reader + join (add-ims-gen), scored fields "IMS definitions" (CardDemo 39/39) and "IMS access check" (14/14), ledger flags ims_gen_validated. Golden masters unchanged. Closes #3477 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017ZsVaAkb86P5r5JXDC2Y9g
Contributor
This was referenced Sep 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of epic #3445.
What it does
IMS PSB and DBD generation members (
.psb/.dbd) are now scanned as hlasm. The macros are assembler, so no new language is needed. JCLEXEC PGM=DFSRRC00,PARM='DLI|BMP,program,psb'steps become region rows. Both land inims_gen_data(core/ims_gen.py, reached throughextract_boundary):PCB@<line>)Column-72 continuations are joined.
hlasmjoinsBOUNDARY_DIALECTS; its other channels stay empty, as before.GalaxyIR gains four joins:
ims_psbs(): each PSB's PCBs, with their DBD, PROCOPT and SENSEGs.ims_databases(): each DBD's segments, with parent, bytes and SEQ key.ims_program_psbs(): each program's PSB, from a JCL region naming its PROGRAM-ID or anEXEC DLI SCHD PSB((name))resolved through the name's VALUE.ims_access_check(): each Mainframe fact channel: IMS DL/I database access (CBLTDLI / EXEC DLI) #3450 program × segment access checked against the PSB's SENSEGs and PROCOPT. Status isok,denied(with the refused accesses),not_sensitiveorno_psb.CardDemo: 4 PSBs and 4 DBDs, and 7 programs resolve to a PSB. All 14 program × segment accesses are
ok: the AP programs update, and PAUDBUNL (GOTP) and DBUNLDGS read only.Ground truth
cobol_answer_key.py add-ims-gen, with its own column-72 reader, operand scan and PROCOPT letter check.ims_gen_validated. CBSA and zOpenEditor have no IMS, so they get empty sections.Checks
Closes #3477
🤖 Generated with Claude Code
https://claude.ai/code/session_017ZsVaAkb86P5r5JXDC2Y9g