OUTPUT Scalar Values

[attr := ] OUTPUT( expression [, NAMED( name ) [,OVERWRITE] ] )

This form is used to allow scalar expression output, particularly within SEQUENTIAL and PARALLEL actions.

For named scalar output, OVERWRITE replaces an existing named result in the workunit.

Example:

OUTPUT(10) // scalar value output
OUTPUT('Fred') // scalar value output
OUTPUT('replaced',NAMED('ErrorReason'),OVERWRITE) // overwrite named scalar output