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 />

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

Example: When (DD) or (DSN) Is Not Specified<br />

When neither (DD) or (DSN) is specified, QSAM examines the argument <strong>for</strong><br />

periods or parentheses. The presence of these delimiters causes the argument to be<br />

considered a data set name. A single 1- to 8-character name is considered a data<br />

definition name.<br />

MVS VARY 00A,ONLINE<br />

ALLOCATE FILE(RDR) UNIT(00A) OLD RECFM(F)LRECL(80)<br />

DSORG(PS) BLKSIZE(80)<br />

PIPE QSAM RDR<br />

| ...<br />

Example: Writing to an Existing Data Definition<br />

The following writes data from the input stream to a data set specified by a data<br />

definition:<br />

PIPE ... |<br />

QSAM (DD) allocddd<br />

| ...<br />

where allocddd is the 'FILE' value from the ALLOCATE command.<br />

Example: Writing to an Existing Data Set Name<br />

The following writes data from the input stream to a data set specified by a data<br />

set name:<br />

PIPE ... |<br />

QSAM (DSN) hiqual.midqual.lowqual(member)<br />

| ...<br />

Note: If the DSN is not partitioned, omit (member).

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

Saved successfully!

Ooh no, something went wrong!