OUTPUT Workunit Files

[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 Query Builder program but do not want that much data to take up memory in the system data store.

Example:

OUTPUT(Person(per_st='FL'), THOR)
  // output records to screen, but store the 
  // result on disk instead of in the workunit

See Also: TABLE, DATASET, PIPE, CHOOSEN