Bytes of a date field read at an offset, and *JOB and *SYS on a date read by bytes #741

Manually merged
binjovi-bot merged 0 commits from lr2e into trunk 2026-11-06 19:00:09 +00:00
Owner

y = %SUBST(f: 6: 2) of a stored date, and %SUBST(%CHAR(f): 7: 4) of a current date, failed with "no type" at the byte offset. A read of the target's width at byte N of a character field that no copy names is %SUBST(f: N+1: W); a date, time or timestamp field takes %CHAR(f) first. A date started by *JOB or *SYS and read by bytes keeps its start value (the compiler's marker byte is X'F0' there, X'40' when the date is only copied).

  • Probes lr2-fb-sub-mid, lr2-fb-sub-usa, lr2-fb-sub-eur, lr2-fb-char-sub-usa, lr2-fb-sub-job, lr2-fb-sub-sys (dictionary captures; red tests in src/rpg_date_bytes_test.zig).
  • Probes lr2-fb-char-sub, lr2-fb-char-sub-cur, lr2-fb-char-var-sub, lr2-fb-sub-cur, lr2-fb-sub-jis, lr2-fb-sub-var (controls that keep emitting).
  • Open: %SUBST(%CHAR(f: *USA): ...) of a variable date (_QRNX_DT_CVT in the statement) and %SUBST(%CHAR(f): 1) without a length.
`y = %SUBST(f: 6: 2)` of a stored date, and `%SUBST(%CHAR(f): 7: 4)` of a current date, failed with "no type" at the byte offset. A read of the target's width at byte N of a character field that no copy names is `%SUBST(f: N+1: W)`; a date, time or timestamp field takes `%CHAR(f)` first. A date started by `*JOB` or `*SYS` and read by bytes keeps its start value (the compiler's marker byte is `X'F0'` there, `X'40'` when the date is only copied). - Probes `lr2-fb-sub-mid`, `lr2-fb-sub-usa`, `lr2-fb-sub-eur`, `lr2-fb-char-sub-usa`, `lr2-fb-sub-job`, `lr2-fb-sub-sys` (dictionary captures; red tests in `src/rpg_date_bytes_test.zig`). - Probes `lr2-fb-char-sub`, `lr2-fb-char-sub-cur`, `lr2-fb-char-var-sub`, `lr2-fb-sub-cur`, `lr2-fb-sub-jis`, `lr2-fb-sub-var` (controls that keep emitting). - Open: `%SUBST(%CHAR(f: *USA): ...)` of a variable date (`_QRNX_DT_CVT` in the statement) and `%SUBST(%CHAR(f): 1)` without a length.
Emit bytes read at an offset of a date field, and *JOB and *SYS on a date read by bytes
Some checks reported errors
binjovi/ci A newer source or plan superseded this Build
11de576cc6
Name the two open forms of a byte read of a date
All checks were successful
binjovi/ci Binjovi completed the frozen plan
f6b0d4c014
binjovi-bot manually merged commit f6b0d4c014 into trunk 2026-11-06 19:00:09 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
sean/sourcerer!741
No description provided.