Repository navigation
CICS: GET CONTAINER BYTEOFFSET and PUT CONTAINER PREPEND, BIT only (Part of #5005) - #5285
Merged
Merged
Conversation
… both runtimes (Part of #5005) Co-Authored-By: Claude Opus 5.5 <[email protected]>
…hecks (Part of #5005) Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
10 tasks done
Owner
Author
|
No description provided. |
squid-protocol
marked this pull request as ready for review
October 16, 2026 20:07
squid-protocol
enabled auto-merge (squash)
October 16, 2026 20:08
Comment on lines
+193
to
+194
| "java.util.function.Function<byte[], String> hex = d -> { StringBuilder b = new StringBuilder(); " | ||
| 'for (byte x : d) b.append(String.format("%02X", x & 0xFF)); return b.toString(); };', |
Comment on lines
+1225
to
+1226
| assert out == ["CicsTask.ContainerResult cont1 = task.getContainerAt(CH.strip(), CN.strip(), " | ||
| "DetCics.containerLimit(f_AREA, INT(FL)), INT(OFF));", |
Contributor
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 #5005 (siblings of #4951: CICS channel and container commands). Models GET CONTAINER BYTEOFFSET and PUT CONTAINER PREPEND (BIT containers only) in both runtimes.
What changed
standards/cics/commands/containers.py):BYTEOFFSETandPREPENDare options now (were refused); LENGERR RESP2 12 outcome; option groups for the combinations refused by name.transaction_forge):getContainerAtandputContainer(.., prepend). Stub (ggcics.c):GGCGETCBYTEOFFSET (offset in GG-NUM, flagBYTEOFFSET) andGGCPUTCPREPEND (flag).det/cics.py) and harness (tests/tools/equivalence_cics.py, one hunk in_container_command: avoid conflicts with equivalence: cases for the 16 CICS programs that have none (6 estates) #5076, which also edits that file).ca-container-byteoffset/{read,past-end}/cobol-stubunsupported -> pass;coverage.jsonand the rendered crucible page moved with them.Design
Offset below 0 is 0; returned length is container length - offset; FLENGTH is set to it; offset >= length is LENGERR RESP2 12 (FLENGTH and INTO left alone: ASSUMED). PREPEND on a new container is the data alone.
Refused by name: BYTEOFFSET / PREPEND on a CHAR container (IBM counts the offset in the requested code page); PREPEND with CHAR / FROMCCSID; FLENGTH below the data left from the offset (LENGERR 11, and what FLENGTH then holds is not said); BYTEOFFSET with NODATA, SET, INTOCCSID, CONVERTST, CCSID(area); PREPEND with APPEND.
Class table (X17 partial/positional container options)
Tests
tests/cics_crucible/test_container_byteoffset_5005.py(stub and CicsTask line for line: offsets -2^31..2^31-1, FLENGTH exact, empty container, 8 refusals on each runtime); translator and harness tests intest_det_translate.py,test_equivalence_cics.py.Gates:
pr_gates --fast6/6,--ratchets8/8 (none skipped);tests/cobol_mainframe,tests/cics_crucible,test_cics_spec5441 passed. Golden masters not touched (no parsing change).Cross-repo: none; cics-crucible stays at v0.8.0 (the case already exists there).
det_port.py checklists every port as CHANGED only becauseCicsTask.java(embedded in each) gained 51 lines; theportsratchet passes, so I did not re-prove all 103.Lessons for agents
cics_crucible.py --update-baselinerefuses--cases; it needs the full run (~2 min) and also rewritescoverage.jsonanddocs/language_status/cics_crucible.md(commit both).det_port.py checklist ~103 ports "CHANGED" (the runtime is embedded in each); theportsratchet is the real judge.🤖 Generated with Claude Code