OUTPUT subcommand v1.0

Pipelines v2.0

 

Purpose, Operands, Streams used, Usage notes, Examples, See also

Home

 

Syntax

 
>>__OUTPUT__ ________ _ _________ _____________________________________________________><
            |_stream_| |_varname_|
                       |_string__|
 

Purpose

 

Use the OUTPUT subcommand to write a record to the specified output stream stream. The stream to write to corresponds to the output stream of the calling pipelines’ CALLPIPE stage. OUTPUT accepts an ooRexx variable name or literal character string as an argument. It writes the contents of the variable or literal string to the specified output stream. The ooRexx variable RC is set with the return code from OUTPUT. A returncode of 12 (end-of-file) is set if the specified output stream is not connected.

 

Operands

 

    

stream

is the stream number of the calling pipelines’ CALLPIPE stage that you want to write to. A record written to a stream that is not connected; is discarded, and the ooRexx variable RC is set to a value of 12 (end-of-file).

 

    

varname

string

is the name of an ooRexx variable, array or stem entry, or a literal character string that is to be written to the specified output stream.

 

Usage notes

 

     1)

If the specified CALLPIPE stages’ output stream is not connected; records written to that stream are discarded.

 

     2)

varname represents any valid ooRexx variable, array or stem entry.

 

Examples

 

None.

 

See also

 

Reference the following links for additional information:

 

ARRAY, VARIABLE

 

History of change

 

None.