In the context of file I/O that does not involve databases, the EGL set statement can reset all the fields in a record variable and, in the case of the IndexRecord stereotype, can change the position of the file pointer.
When you use this statement with the CSVRecord stereotype, the only permitted form is set empty.

package com.companyb.customer;
Record IndexedRecordExample type IndexedRecord {
fileName = "C:\\temp\\indexfile.txt",
keyItem = indKey
}
10 indKey INT;
15 indKeyAsHex HEX(8);
10 indTitle CHAR(30);
10 indAuthor CHAR(30);
end
program readall
myIndexedRecord IndexedRecordExample;
Function main()
// sets indKey to 0, other fields blank
set myIndexedRecord empty;
myIndexedRecord.indKeyAsHex = x"FFFFFFFF";
// moves to end of file
set myIndexedRecord position;
...
end // main()
end // program