You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
det: a LINK writes the callee's DTO back over the caller's COMMAREA -- a numeric field holding spaces the callee never wrote comes back as digits (CBSA BNK1UAC -> INQACC) #4806
bugUnintended behavior or logic failure in the engineera:2Era CICS/MVS-ESA, COBOL II/85: RESP, SQL, DPL (~1988-96) (era_tags.py)legacy-modernizationCOBOL refractor, dead-code extraction, and JCL forgingpriority: mediumscope:coreBlocks a burned-estate program's next evidence rung, or the 4th-estate one-shot trial
Found writing the CBSA BNK1UAC equivalence case (#4270). The det port of a LINK passes the caller's COMMAREA to the callee as the callee's DTO and writes the DTO back over the caller's bytes afterwards (out_<Dto>(storage) before task.link(...), in_<Dto>(dto, storage) after). A numeric DISPLAY field of the callee's layout that holds spaces in the caller's storage (the callee never writes it) comes back changed: the DTO reads the spaces as a number (-16) and writes it back as digits.
Where. CBSA BNK1UAC INQ-ACC-DATA: it INITIALIZEs its own DFHCOMMAREA (COMM-CUSTNO PIC X(10), COMM-SCODE PIC X(6): spaces) and LINKs INQACC with it. INQACC's layout (INQACC copybook) has INQACC-CUSTNO PIC 9(10), INQACC-SCODE PIC 9(6) there. For an account that is not on file INQACC only sets INQACC-SUCCESS 'N' -- the rest of the area is the caller's.
COBOL (GnuCOBOL oracle, and z/OS): COMM-CUSTNO / COMM-SCODE are still spaces after the LINK.
det port: 0000000016 / 000016 (the RETURN COMMAREA's WS-COMM-CUSTNO / WS-COMM-SCODE, copied from them).
Expected. After a LINK, the caller's storage holds exactly the bytes the callee left in the COMMAREA (IBM: the COMMAREA is passed by address, so the callee changes the caller's storage in place). A byte the callee did not write must not change. The callee's port already takes the bytes (task.linkArea(), #4765). So the write-back should be those bytes, not a DTO round trip, or the DTO round trip must keep bytes it cannot decode. Never loosen the comparison: the case shows it as a COMMAREA difference.
Repro. The scratch generator for the case is in the #4270 CBSA cases handoff (handoff-4270-cbsa-whole-cases.md). Its scenario inquire-not-found (ENTER with ACCNO 00000050) is enough.
Blocks: an equivalence case for CBSA BNK1UAC. BNK1UAC is also blocked by #4695 (RETURN LENGTH(99) over its DTO). Part of #4270.
bugUnintended behavior or logic failure in the engineera:2Era CICS/MVS-ESA, COBOL II/85: RESP, SQL, DPL (~1988-96) (era_tags.py)legacy-modernizationCOBOL refractor, dead-code extraction, and JCL forgingpriority: mediumscope:coreBlocks a burned-estate program's next evidence rung, or the 4th-estate one-shot trial
Activity
det: XCTL bytes -- name the byte[] expressions apart from the LINK's …
WIP: det sweep coverage ledger from the #4806 sweep (52 changed ports…
equivalence: cases for the CBSA programs made whole (Part of #4270) (#…
det: RETURN TRANSID COMMAREA carries its bytes to the next task (Part…