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.

PIPE HOLE<br />

PIPE HOLE<br />

Syntax<br />

HOLE:<br />

HOLE<br />

Command Description<br />

The HOLE stage discards the contents of the pipeline. Also, you can use it to<br />

determine whether a command has correlated output.<br />

Streams<br />

Use HOLE as a first stage to start a pipeline. Using HOLE in this way enables a<br />

stage that cannot normally be used as a first stage to start a pipeline by placing the<br />

stage immediately after HOLE.<br />

Stream Type Number Supported<br />

Input 1<br />

Output 1<br />

Termination Conditions<br />

HOLE terminates when the input stream disconnects.<br />

Operand Descriptions<br />

This stage has no operand descriptions.<br />

Usage Notes<br />

Examples<br />

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

v Only commands that produce correlated output can be used effectively with the<br />

PIPE command. You can use the HOLE stage to determine whether a command<br />

produces correlated output. Code the command you want to test in a PIPE<br />

command and follow it with the HOLE stage:<br />

PIPE NETV your_command_name | HOLE<br />

If the command produces correlated output, the output from the command<br />

enters the pipeline and is discarded by the HOLE stage. If you do not see the<br />

usual output from the command, you know that the command produces<br />

correlated output and can be used effectively with the PIPE command.<br />

v See “PIPE NETVIEW ” on page 167 <strong>for</strong> a list of some commands <strong>for</strong> which<br />

command and response correlation is supported.<br />

Example: Waiting 5 Seconds<br />

The following command waits 5 seconds.<br />

PIPE CORRWAIT 5<br />

| HOLE

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

Saved successfully!

Ooh no, something went wrong!