Skip to content

Commit 7d2e1f6

Browse files
crucible: committed det port of HCUNLK; a tokenless UNLOCK records the UNLOCK event (Part of #6876) (#7484)
Co-authored-by: Claude Sonnet 5.5 <[email protected]>
1 parent cef66a8 commit 7d2e1f6

7 files changed

Lines changed: 674 additions & 23 deletions

File tree

‎docs/language_status/cics_crucible.md‎

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -454,15 +454,17 @@ Each feature a cell needs that its side does not model (`translator:` the COBOL
454454
| cobol-stub | data bytes differ | 1 |
455455
| cobol-stub | text differs | 1 |
456456
| java | runTask records no events (the generated stub: PROCEDURE DIVISION not ported) | 177 |
457-
| java-ported | not ported | 110 |
457+
| java-ported | not ported | 106 |
458+
| java-ported | READ expected, other event | 4 |
458459
| java-ported | STARTBR expected, other event | 3 |
459460
| java-ported | item differs | 2 |
460-
| java-ported | READ expected, other event | 1 |
461-
| java-facade | not ported | 110 |
461+
| java-ported | REWRITE expected, other event | 1 |
462+
| java-facade | not ported | 106 |
463+
| java-facade | READ expected, other event | 4 |
462464
| java-facade | RECEIVE expected, other event | 3 |
463465
| java-facade | STARTBR expected, other event | 3 |
464466
| java-facade | item differs | 2 |
465-
| java-facade | READ expected, other event | 1 |
467+
| java-facade | REWRITE expected, other event | 1 |
466468

467469
## Every cell that does not pass
468470

@@ -716,17 +718,17 @@ Each feature a cell needs that its side does not model (`translator:` the COBOL
716718
| `hc-file-read-set/read-set/java-facade` | fail | task 1 (HC83) event 2: READ expected, got DRIVER-ERROR (runTask threw com.gitgalaxy.modernized.cobolrt.Hole: CICS file HCRS: the program names no file the generated project stores) |
717719
| `hc-file-read-set/read-set/java-ported` | fail | task 1 (HC83) event 2: READ expected, got DRIVER-ERROR (runTask threw com.gitgalaxy.modernized.cobolrt.Hole: CICS file HCRS: the program names no file the generated project stores) |
718720
| `hc-file-unlock/read-short/java` | fail | task 1 (HC81) event 1: RECEIVE expected, the side recorded no further event |
719-
| `hc-file-unlock/read-short/java-facade` | fail | no port of any of its programs |
720-
| `hc-file-unlock/read-short/java-ported` | fail | no port of any of its programs |
721+
| `hc-file-unlock/read-short/java-facade` | fail | task 1 (HC81) event 2: READ expected, got DRIVER-ERROR (runTask threw com.gitgalaxy.modernized.cobolrt.Hole: line 114: EXEC EXEC CICS: WsRec: no key (the generated entity states none: no IDCAMS DEFINE, RECORD KEY or RIDFLD field inside the record names it, and a KSDS key's offset is not guessed)) |
722+
| `hc-file-unlock/read-short/java-ported` | fail | task 1 (HC81) event 2: READ expected, got DRIVER-ERROR (runTask threw com.gitgalaxy.modernized.cobolrt.Hole: line 114: EXEC EXEC CICS: WsRec: no key (the generated entity states none: no IDCAMS DEFINE, RECORD KEY or RIDFLD field inside the record names it, and a KSDS key's offset is not guessed)) |
721723
| `hc-file-unlock/unlock-nothing/java` | fail | task 1 (HC81) event 1: RECEIVE expected, the side recorded no further event |
722-
| `hc-file-unlock/unlock-nothing/java-facade` | fail | no port of any of its programs |
723-
| `hc-file-unlock/unlock-nothing/java-ported` | fail | no port of any of its programs |
724+
| `hc-file-unlock/unlock-nothing/java-facade` | fail | task 1 (HC81) event 4: REWRITE expected, got DRIVER-ERROR (runTask threw com.gitgalaxy.modernized.cobolrt.Hole: line 100: EXEC EXEC CICS: WsRec: no key (the generated entity states none: no IDCAMS DEFINE, RECORD KEY or RIDFLD field inside the record names it, and a KSDS key's offset is not guessed)) |
725+
| `hc-file-unlock/unlock-nothing/java-ported` | fail | task 1 (HC81) event 4: REWRITE expected, got DRIVER-ERROR (runTask threw com.gitgalaxy.modernized.cobolrt.Hole: line 100: EXEC EXEC CICS: WsRec: no key (the generated entity states none: no IDCAMS DEFINE, RECORD KEY or RIDFLD field inside the record names it, and a KSDS key's offset is not guessed)) |
724726
| `hc-file-unlock/unlock-rewrite/java` | fail | task 1 (HC81) event 1: RECEIVE expected, the side recorded no further event |
725-
| `hc-file-unlock/unlock-rewrite/java-facade` | fail | no port of any of its programs |
726-
| `hc-file-unlock/unlock-rewrite/java-ported` | fail | no port of any of its programs |
727+
| `hc-file-unlock/unlock-rewrite/java-facade` | fail | task 1 (HC81) event 2: READ expected, got DRIVER-ERROR (runTask threw com.gitgalaxy.modernized.cobolrt.Hole: line 73: EXEC EXEC CICS: WsRec: no key (the generated entity states none: no IDCAMS DEFINE, RECORD KEY or RIDFLD field inside the record names it, and a KSDS key's offset is not guessed)) |
728+
| `hc-file-unlock/unlock-rewrite/java-ported` | fail | task 1 (HC81) event 2: READ expected, got DRIVER-ERROR (runTask threw com.gitgalaxy.modernized.cobolrt.Hole: line 73: EXEC EXEC CICS: WsRec: no key (the generated entity states none: no IDCAMS DEFINE, RECORD KEY or RIDFLD field inside the record names it, and a KSDS key's offset is not guessed)) |
727729
| `hc-file-unlock/update-rewrite/java` | fail | task 1 (HC81) event 1: RECEIVE expected, the side recorded no further event |
728-
| `hc-file-unlock/update-rewrite/java-facade` | fail | no port of any of its programs |
729-
| `hc-file-unlock/update-rewrite/java-ported` | fail | no port of any of its programs |
730+
| `hc-file-unlock/update-rewrite/java-facade` | fail | task 1 (HC81) event 2: READ expected, got DRIVER-ERROR (runTask threw com.gitgalaxy.modernized.cobolrt.Hole: line 56: EXEC EXEC CICS: WsRec: no key (the generated entity states none: no IDCAMS DEFINE, RECORD KEY or RIDFLD field inside the record names it, and a KSDS key's offset is not guessed)) |
731+
| `hc-file-unlock/update-rewrite/java-ported` | fail | task 1 (HC81) event 2: READ expected, got DRIVER-ERROR (runTask threw com.gitgalaxy.modernized.cobolrt.Hole: line 56: EXEC EXEC CICS: WsRec: no key (the generated entity states none: no IDCAMS DEFINE, RECORD KEY or RIDFLD field inside the record names it, and a KSDS key's offset is not guessed)) |
730732
| `hc-handle-aid/anykey-not-enter/java` | fail | task 1 (HA01) event 1: RECEIVE expected, the side recorded no further event |
731733
| `hc-handle-aid/anykey-not-enter/java-facade` | fail | no port of any of its programs |
732734
| `hc-handle-aid/anykey-not-enter/java-ported` | fail | no port of any of its programs |

‎gitgalaxy/tools/cobol_to_java/det/cics_filecontrol.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -514,10 +514,10 @@ def file_update(self, verb: str, opts: dict, ind: str) -> list[str]:
514514
return self.delete_generic(opts, ind)
515515
if "TOKEN" in opts: # #5078 (X52): the record a READ UPDATE TOKEN holds
516516
return self.token_update(verb, opts, ind)
517-
if verb == "UNLOCK": # #5079 (X52): the file's tokenless hold
517+
if verb == "UNLOCK": # #5079 (X52): the file's tokenless hold, recorded as the SPEC 6.2 UNLOCK event (#6876)
518518
file = self.file_name(_arg(opts.get("DATASET") or opts.get("FILE")))
519519
r = self.g.tmpname("resp")
520-
return [f"{ind}int {r} = task.unlockHeld({file});", *self.outcome(opts, r, "task.resp2()", ind)]
520+
return [f"{ind}int {r} = task.unlock({file});", *self.outcome(opts, r, "task.resp2()", ind)]
521521
if verb == "DELETE":
522522
try:
523523
self._keylength(verb, opts)

‎tests/cics_crucible/baseline.json‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -251,17 +251,17 @@
251251
"hc-file-read-set/read-set/java-facade": {"status": "fail", "reason": "task 1 (HC83) event 2: READ expected, got DRIVER-ERROR (runTask threw com.gitgalaxy.modernized.cobolrt.Hole: CICS file HCRS: the program names no file the generated project stores)"},
252252
"hc-file-read-set/read-set/java-ported": {"status": "fail", "reason": "task 1 (HC83) event 2: READ expected, got DRIVER-ERROR (runTask threw com.gitgalaxy.modernized.cobolrt.Hole: CICS file HCRS: the program names no file the generated project stores)"},
253253
"hc-file-unlock/read-short/java": {"status": "fail", "reason": "task 1 (HC81) event 1: RECEIVE expected, the side recorded no further event"},
254-
"hc-file-unlock/read-short/java-facade": {"status": "fail", "reason": "no port of any of its programs"},
255-
"hc-file-unlock/read-short/java-ported": {"status": "fail", "reason": "no port of any of its programs"},
254+
"hc-file-unlock/read-short/java-facade": {"status": "fail", "reason": "task 1 (HC81) event 2: READ expected, got DRIVER-ERROR (runTask threw com.gitgalaxy.modernized.cobolrt.Hole: line 114: EXEC EXEC CICS: WsRec: no key (the generated entity states none: no IDCAMS DEFINE, RECORD KEY or RIDFLD field inside the record names it, and a KSDS key's offset is not guessed))"},
255+
"hc-file-unlock/read-short/java-ported": {"status": "fail", "reason": "task 1 (HC81) event 2: READ expected, got DRIVER-ERROR (runTask threw com.gitgalaxy.modernized.cobolrt.Hole: line 114: EXEC EXEC CICS: WsRec: no key (the generated entity states none: no IDCAMS DEFINE, RECORD KEY or RIDFLD field inside the record names it, and a KSDS key's offset is not guessed))"},
256256
"hc-file-unlock/unlock-nothing/java": {"status": "fail", "reason": "task 1 (HC81) event 1: RECEIVE expected, the side recorded no further event"},
257-
"hc-file-unlock/unlock-nothing/java-facade": {"status": "fail", "reason": "no port of any of its programs"},
258-
"hc-file-unlock/unlock-nothing/java-ported": {"status": "fail", "reason": "no port of any of its programs"},
257+
"hc-file-unlock/unlock-nothing/java-facade": {"status": "fail", "reason": "task 1 (HC81) event 4: REWRITE expected, got DRIVER-ERROR (runTask threw com.gitgalaxy.modernized.cobolrt.Hole: line 100: EXEC EXEC CICS: WsRec: no key (the generated entity states none: no IDCAMS DEFINE, RECORD KEY or RIDFLD field inside the record names it, and a KSDS key's offset is not guessed))"},
258+
"hc-file-unlock/unlock-nothing/java-ported": {"status": "fail", "reason": "task 1 (HC81) event 4: REWRITE expected, got DRIVER-ERROR (runTask threw com.gitgalaxy.modernized.cobolrt.Hole: line 100: EXEC EXEC CICS: WsRec: no key (the generated entity states none: no IDCAMS DEFINE, RECORD KEY or RIDFLD field inside the record names it, and a KSDS key's offset is not guessed))"},
259259
"hc-file-unlock/unlock-rewrite/java": {"status": "fail", "reason": "task 1 (HC81) event 1: RECEIVE expected, the side recorded no further event"},
260-
"hc-file-unlock/unlock-rewrite/java-facade": {"status": "fail", "reason": "no port of any of its programs"},
261-
"hc-file-unlock/unlock-rewrite/java-ported": {"status": "fail", "reason": "no port of any of its programs"},
260+
"hc-file-unlock/unlock-rewrite/java-facade": {"status": "fail", "reason": "task 1 (HC81) event 2: READ expected, got DRIVER-ERROR (runTask threw com.gitgalaxy.modernized.cobolrt.Hole: line 73: EXEC EXEC CICS: WsRec: no key (the generated entity states none: no IDCAMS DEFINE, RECORD KEY or RIDFLD field inside the record names it, and a KSDS key's offset is not guessed))"},
261+
"hc-file-unlock/unlock-rewrite/java-ported": {"status": "fail", "reason": "task 1 (HC81) event 2: READ expected, got DRIVER-ERROR (runTask threw com.gitgalaxy.modernized.cobolrt.Hole: line 73: EXEC EXEC CICS: WsRec: no key (the generated entity states none: no IDCAMS DEFINE, RECORD KEY or RIDFLD field inside the record names it, and a KSDS key's offset is not guessed))"},
262262
"hc-file-unlock/update-rewrite/java": {"status": "fail", "reason": "task 1 (HC81) event 1: RECEIVE expected, the side recorded no further event"},
263-
"hc-file-unlock/update-rewrite/java-facade": {"status": "fail", "reason": "no port of any of its programs"},
264-
"hc-file-unlock/update-rewrite/java-ported": {"status": "fail", "reason": "no port of any of its programs"},
263+
"hc-file-unlock/update-rewrite/java-facade": {"status": "fail", "reason": "task 1 (HC81) event 2: READ expected, got DRIVER-ERROR (runTask threw com.gitgalaxy.modernized.cobolrt.Hole: line 56: EXEC EXEC CICS: WsRec: no key (the generated entity states none: no IDCAMS DEFINE, RECORD KEY or RIDFLD field inside the record names it, and a KSDS key's offset is not guessed))"},
264+
"hc-file-unlock/update-rewrite/java-ported": {"status": "fail", "reason": "task 1 (HC81) event 2: READ expected, got DRIVER-ERROR (runTask threw com.gitgalaxy.modernized.cobolrt.Hole: line 56: EXEC EXEC CICS: WsRec: no key (the generated entity states none: no IDCAMS DEFINE, RECORD KEY or RIDFLD field inside the record names it, and a KSDS key's offset is not guessed))"},
265265
"hc-handle-aid/anykey-not-enter/java": {"status": "fail", "reason": "task 1 (HA01) event 1: RECEIVE expected, the side recorded no further event"},
266266
"hc-handle-aid/anykey-not-enter/java-facade": {"status": "fail", "reason": "no port of any of its programs"},
267267
"hc-handle-aid/anykey-not-enter/java-ported": {"status": "fail", "reason": "no port of any of its programs"},

0 commit comments

Comments
 (0)