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
- 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 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