Repository navigation
det: JSON GENERATE CONVERTING ... TO JSON BOOLEAN (Part of #7524, #7709) - #7949
Draft
squid-protocol wants to merge 4 commits into
Draft
squid-protocol wants to merge 4 commits into
squid-protocol wants to merge 4 commits into
Conversation
…9 (Part of #7524) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…132Z # Conflicts: # docs/language_status/register/X76.md
Translated from IBM's 6.4 definition: true on a match of the condition-name or single-byte literal, else false; ALSO lists several. Refused by name: not a one-byte PIC X item, an 88 not under the item, a longer literal, a table item, and SUPPRESS ... WHEN on the same item. TO JSON NULL stays a hole. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Owner
Author
|
Waiting on an owner decision (asked privately, 2026-11-06). Nothing is needed from contributors; work resumes once it is answered. |
This branch has not been deployed
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.
Summary
JSON GENERATE takes
CONVERTING item TO [JSON] BOOLEAN | BOOL USING condition-name | literal [ALSO ...](IBM Enterprise COBOL 6.4 LR, converting phrase format 1). A value matching the 88 (directly under the item) or the single-byte literal is writtentrue, any other valuefalse. Translated as a runtime boolean from the existing comparison / condition-name test (JsonGenerate.bool). Oracle-unbacked (X76, ASSUMED): no L2+ claim.Refused by name: item not one-byte PIC X, an 88 not directly under it, a literal longer than one byte, an item inside a table, the same item in SUPPRESS ... WHEN / EVERY (IBM states none of these), and
TO JSON NULL(format 2).Stacked on #7947 (COMP-1, same files); merge #7947 first, then retarget to main.
Checklist: partial [c:bb8e1760] -- CONVERTING ... TO JSON NULL (format 2) is left; COMP-2, an elementary source, an ODO table inside a table and NAME OMITTED on a member stay refused because IBM is silent or calls them illegal
Class
JSON GENERATE phrases IBM defines that the det translator still holed. Sweep: COUNT, NAME (incl. OMITTED on the source), SUPPRESS / WHEN / EVERY, ODO tables, JSON-CODE, ON EXCEPTION, COMP-1 (#7947) are done; CONVERTING boolean is this PR.
Sibling gaps
No burned estate program uses JSON (census programs are non-burned: listed, not worked).
Remaining slices
Format 2 (NULL); JSON PARSE CONVERTING.
Facts checked
data-afalse,data-btrue) match the tests. The page does not say which release added the phrase; the register says so and claims none.det_port.py check: 270/270 ports unchanged (no burned program uses JSON).tests/cobol_mainframe/test_det_json_generate.py,test_cobolrt_rules.py,test_cobolrt_api.py: 179 passed (incl. a JDK 17 runtime run ofbool).audit_check.py: all clear.cobolrt_rules.py --check: consistent.Lessons for agents
JsonGeneratenode factory needs its name in theCBLfamily plumbing list (cobolrt_rules.json) andcobolrt_api.py generate; one the translator emits by f-string shows asinternaluntil set topublicby hand (test_no_committed_port_or_generator_string_uses_an_internal_member).🤖 Generated with Claude Code