Offset mode

 

For DEFINE and IF statements, when working with ASCII data, you can specify logic without specifying the record each time. You can use ‘record image’ or ‘offset mode’ (also called ‘position orientation’). For example, the record image: 1/20 can be represented as: 20. Also, if you have two records, each with 80 columns and you want to refer to the second record, tenth position, the record image would be: 2/10 and the offset mode would be: 90.

 

For example, you can write:

 

DEFINE Q20 = 1/32 (record image)

 

or

 

DEFINE Q20 = 32 (offset mode)

 

When writing glossary variables, you can use the offset mode only with DEFINE statements and IF conditions.

Related topics:

Basic logic syntax

Logic