record.elem1 THRU record.elem2

The THRU keyword can be used to specify a range of members of a record.

Syntax

record.first-member [ THRU | THROUGH ] record.last-member
  1. record defines the record to be used.
  2. first-member defines the member of the record starting the group of variables.
  3. last-member defines the member of the record ending the group of variables.
  4. THROUGH is a synonym for THRU.

Usage

The THRU keyword can be used in several instructions such as INITIALIZE, VALIDATE, LOCATE, to specify a list of record members.

Example

SCHEMA stores 
MAIN
  DEFINE cust LIKE customer.*
  INITIALIZE cust.cust_name THRU customer.cust_address TO NULL
END MAIN