Offset word in cobol or EZT

Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

Offset word in cobol or EZT

Postby arya_starc » Wed Nov 30, 2016 3:38 pm

Can offset and position word can be used interchangeably in Cobol and ezt?
Posts: 132
Joined: Mon Sep 21, 2015 1:39 pm
Has thanked: 5 times
Been thanked: 0 time

Re: Offset word in cobol or EZT

Postby Robert Sample » Wed Nov 30, 2016 6:06 pm

No, offset and position are not interchangeable -- not in COBOL, not in Easytrieve (which is what I assume you meant by EZT), not in assembler, not on a PC, not on a Unix / Linux machine. Offsets start at zero while positions start at 1. The first byte of a record has offset 0 and position 1.
Robert Sample
Global moderator
Posts: 3657
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 270 times

Return to IBM Cobol


  • Related topics
    Last post