[attr := ] OUTPUT( recordset , THOR )
This form is used to store the resulting recordset as a file on disk "owned" by the workunit. The name of the file in the DFU is scope::RESULT::workunitid. This is useful when you want to view a large result recordset in the ECL IDE program but do not want that much data to take up memory in the system data store.
For named results stored directly in a workunit (using NAMED), see Named OUTPUT for EXTEND and OVERWRITE semantics.
Example:
OUTPUT(Person(per_st='FL'), THOR)
// output records to screen, but store the
// result on disk instead of in the workunit