A stored process can
create output in the form of an output file. An output file is a SAS
fileref that is set up before the stored process begins execution.
The fileref can point to a local file to be created on the server,
a stream consumed by the client, a temporary file that is read by
the client after execution is complete, or any other valid fileref
that is set up by a stored process client.
Output files are identified
by a unique fileref name and are defined in the stored process metadata.
The metadata can provide descriptive information or hints to guide
clients in the use of output files. Output files can be optional or
required. Optional output files are not assigned if the client does
not request the output.
The _WEBOUT fileref
is frequently used for streaming output from a stored process. The
client API can assign the _WEBOUT fileref to a server local file,
a temporary file, or any other valid fileref. In the streaming output
use case, _WEBOUT is assigned to a stream using the CACHE access method.
Then ODS is configured to write to _WEBOUT, and a handle to the _WEBOUT
stream is returned to the client Web application. The client Web application
can read output from the stream as it is written by the stored process.