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.

Usage Notes<br />

DROP cannot be the first stage.<br />

Examples<br />

PIPE DROP<br />

Example: Discarding Messages with DROP<br />

The pipe in the following example takes the output of the <strong>NetView</strong> LIST "<br />

command, deletes the END OF STATUS DISPLAY line using the DROP stage, collects<br />

the results into a multiline message, and displays them.<br />

PIPE NETVIEW LIST "<br />

| DROP LAST 1<br />

| COLLECT<br />

| CONSOLE<br />

The DROP stage buffers one message so that it can determine which is last. It then<br />

discards this last message. Notice that the order is important. If COLLECT<br />

preceded DROP, then DROP would have seen exactly one (multiline) message on<br />

its input stream. That entire message would have been dropped.<br />

Chapter 2. Pipeline Stages and Syntax 73

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

Saved successfully!

Ooh no, something went wrong!