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
- record defines the record to be used.
- first-member defines the member of the record starting the group of variables.
- last-member defines the member of the record ending the group of variables.
THROUGH
is a synonym forTHRU
.
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