THRU/THROUGH

The THRU keyword can be used to specify a set 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 DISPLAY, PRINT, INITIALIZE, VALIDATE, LOCATE, to specify a list of record members by using a starting member and an ending member.

Example

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