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?
arya_starc
 
Posts: 111
Joined: Mon Sep 21, 2015 1:39 pm
Has thanked: 4 times
Been thanked: 0 time

Re: Offset word in cobol or EZT

 

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: 3344
Joined: Sat Dec 19, 2009 8:32 pm
Location: East Dubuque, Illinois
Has thanked: 1 time
Been thanked: 219 times


Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post