28.11.2012 Views

IBM Tivoli NetView for z/OS Programming: Pipes - IBM notice

IBM Tivoli NetView for z/OS Programming: Pipes - IBM notice

IBM Tivoli NetView for z/OS Programming: Pipes - IBM notice

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

PIPE QSAM<br />

PIPE QSAM<br />

Syntax<br />

QSAM:<br />

QSAM<br />

Synonyms<br />

(DD)<br />

(DSN)<br />

data_set_name<br />

data_definition_name APPEND<br />

Stage Name Synonym<br />

QSAM (read) <<br />

QSAM (write) ><br />

Note: The < and > synonyms <strong>for</strong> QSAM read and write can only be used when <<br />

and > are immediately followed by a data set name enclosed in quotation<br />

marks. The < synonym has additional functionality as the < (from disk)<br />

stage. See “PIPE < (From Disk) ” on page 278 and “PIPE > (To Disk) ” on<br />

page 281 <strong>for</strong> more in<strong>for</strong>mation.<br />

Command Description<br />

The QSAM stage reads and writes from dynamically allocated data definition<br />

names or data sets. Other devices are also supported when allocated <strong>for</strong> Physical<br />

Sequential access.<br />

Streams<br />

196 <strong>Programming</strong>: <strong>Pipes</strong><br />

The QSAM stage can be used with either a data definition name defined by the<br />

ALLOCATE command, or a fully qualified data set name. If desired, a data set<br />

name can be enclosed in single quotation marks. The quotation marks are ignored.<br />

When specified as a first stage to read a file, QSAM reads from the data definition<br />

name or data set. When not specified as a first stage, QSAM writes to the data<br />

definition name or data set. The messages received on the input stream are passed<br />

to the output stream.<br />

Stream Type Number Supported<br />

Input 1<br />

Output 2<br />

Termination Conditions<br />

When specified as a first stage to read a file, the QSAM stage terminates when<br />

end-of-file is reached or when the output stream is disconnected. When not a first<br />

stage, QSAM terminates when the input stream is disconnected.<br />

A signed 10-digit decimal return code is written to the secondary output stream if<br />

the secondary stream is connected.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!