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

PIPE DUPLICAT<br />

Syntax<br />

Synonyms<br />

DUPLICAT:<br />

DUPLICAT<br />

1<br />

number<br />

*<br />

Stage Name Synonym<br />

DUPLICAT DUP<br />

Command Description<br />

DUPLICAT copies messages in the input stream and writes the copied messages to<br />

the output stream.<br />

Streams<br />

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

The copies are marked as "copy" (IFRAUCPY on) rather than "primary" (IFRAUPRI<br />

off). The message text is unchanged.<br />

Stream Type Number Supported<br />

Input 1<br />

Output 1<br />

Termination Conditions<br />

DUPLICAT terminates when the input stream or the output stream disconnects.<br />

Operand Descriptions<br />

number<br />

Specifies the number of copies to make in addition to the original message. If<br />

number is zero (0), then the input message is written to the output stream and<br />

no additional copies are made. If number is −1, no additional copies are made<br />

and the input message is discarded from the pipeline.<br />

Number must be −1 or greater. The default is 1.<br />

* An asterisk (*) indicates that DUPLICAT is to make copies indefinitely.<br />

Examples<br />

See also “Example: Discover TSO Stacks Serving a User” on page 242 <strong>for</strong> an<br />

example of how to use the asterisk (*) DUPLICAT option.<br />

Example: Creating Four Consecutive Utilization Reports<br />

In the following example, AUTO1 executes 4 TASKUTIL commands and returns<br />

the results to the console.

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

Saved successfully!

Ooh no, something went wrong!