NEXT field [, field, …]
where field specifies the name of the field whose next value is to be retrieved.
The valid field names that can be referenced on the statement are A, BA, BID, BINST, BHIST, DISTID, HIST, INST, RECORD, RID, TEXT, and VARNAME.
Note: The RECORD field allows you to obtain the next record from the database or the next sort record from the database.
When the NEXT control statement is issued for a field that has no more occurrences, the related field is set to zeros or blanks depending on the field type. RID and DISTID are mutually exclusive with the SORT control statement.
An example of the NEXT control statement is provided in the explanation of the DO control statement.
|
Copyright © 2013 CA.
All rights reserved.
|
|