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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Operand Descriptions<br />

Usage Notes<br />

PIPE QSAM<br />

data definition name<br />

Specifies what data definition name is to be used. If an initial (DD) or (DSN) is<br />

not specified, the QSAM stage examines the specification. If the argument is a<br />

single 1- to 8-character value without period delimiters or quotation marks,<br />

then it is considered a data definition name. Otherwise, the argument is<br />

considered a data set name.<br />

You can use a data definition name with the QSAM stage by executing an<br />

ALLOCATE command. A data set allocated in this manner can include a<br />

member name as part of the specification. A data definition name that is<br />

specified to QSAM with a member name is rejected. When using this method<br />

<strong>for</strong> a device or medium that is not a data set, it must be suitable <strong>for</strong> Physical<br />

Sequential access. Specify DSORG(PS) and a suitable block size.<br />

data set name<br />

Specifies what data set name is to be used. If an initial (DD) or (DSN) is not<br />

specified, the QSAM stage examines the specification. If the argument is a<br />

single 1- to 8-character value without period delimiters or quotation marks, it<br />

is considered a data definition name. Otherwise, the argument is considered a<br />

data set name.<br />

(DD)<br />

Specifies that the specification is <strong>for</strong> a data definition.<br />

(DSN)<br />

Specifies that the specification is <strong>for</strong> a data set name.<br />

APPEND<br />

Specifies that the data is to be appended onto the end of the records that are<br />

already in the file (otherwise writing generally occurs from the start). APPEND<br />

causes the DCB to be opened internally with the EXTEND option. Another<br />

method <strong>for</strong> appending onto the end is to allocate the file using the MOD<br />

keyword, in which case the QSAM APPEND option is redundant. See the<br />

ALLOCATE command in the <strong>NetView</strong> online help or <strong>IBM</strong> <strong>Tivoli</strong> <strong>NetView</strong> <strong>for</strong><br />

z/<strong>OS</strong> Command Reference Volume 1 (A-N).<br />

Do not use the APPEND option when writing to a PDS member.<br />

v QSAM cannot access a data definition name and member name combination<br />

except through a DDNAME allocated with a member name.<br />

v When neither DD or DSN is specified, the QSAM stage examines the name<br />

specification to determine whether it is a data set name or a data definition<br />

name. This is the default.<br />

v You can read and write to the same data definition or data set name within a<br />

single pipe.<br />

v Access security <strong>for</strong> the QSAM stage is provided through the READSEC and<br />

WRITESEC commands. See the <strong>IBM</strong> <strong>Tivoli</strong> <strong>NetView</strong> <strong>for</strong> z/<strong>OS</strong> Administration<br />

Reference <strong>for</strong> in<strong>for</strong>mation on the READSEC and WRITESEC commands. Other<br />

errors can stop processing be<strong>for</strong>e the security check can be done.<br />

v The QSAM stage allocates the data set with DISP=SHR specified and then opens<br />

the data set requesting OUTPUT access. It is possible <strong>for</strong> another application or<br />

task to be writing or reading the data set at the same time as the PIPE QSAM<br />

stage is reading or writing the data set. You might encounter this restriction<br />

when two different QSAM stages are attempting to write to different members<br />

Chapter 2. Pipeline Stages and Syntax 197

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

Saved successfully!

Ooh no, something went wrong!