Thread: Abends and Error Codes

Easytrieve field overlay - DEFINE parent + offset wrong?

Started by Susan • user3 replies112 viewsLast activity 2 weeks ago
Post #1
0 votes
Susan
Reputation
167
Posts: 26
Joined: Jan 19, 2025, 4:12 PM
Posted: Aug 1, 2026, 9:19 AM

Trying to overlay month on a date field:

HIRE-DATE 1 6 N
HIRE-MM HIRE-DATE +2 2 N

Getting weird values. Is the +offset form right or should it be without the plus?

Post #2
1 votes
Marty
Reputation
412
Posts: 58
Joined: Aug 12, 2024, 9:14 AM
Posted: Aug 1, 2026, 11:19 AM

Overlay is parent-name then start position relative to that field, not +offset arithmetic like Assembler.

HIRE-MM HIRE-DATE 3 2 N
means start at byte 3 of HIRE-DATE (1-based within the parent).

Check your release docs for the exact overlay syntax your shop uses. The relative *+n form is easy to get wrong too.

Post #3
0 votes
Susan
Reputation
167
Posts: 26
Joined: Jan 19, 2025, 4:12 PM
Posted: Aug 1, 2026, 5:19 PM

HIRE-DATE 3 2 N worked. I was mixing COBOL REDEFINES habits with EZT overlay syntax.

You must be signed in to reply to this thread