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.

Introduction and Concepts<br />

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

| TAKE FIRST 1<br />

| LITERAL /OUR FINAL VACATION CHOICE/<br />

| COLLECT<br />

| CONSOLE<br />

They changed the LOCATE stage to select messages that contain either the word<br />

RIVER or PARK. The NLOCATE stage subsequently sees only messages containing<br />

RIVER or PARK and from those messages discards all that contain ASIA, AFRICA, or<br />

AUSTRALIA.<br />

Next, the TAKE stage selects the first message remaining in the pipeline after all<br />

the previous stages are completed. This is a message showing a river or park that<br />

is not in Asia, Africa, or Australia.<br />

The complete specification <strong>for</strong> the TAKE stage is TAKE FIRST 1, which indicates<br />

that the first message is selected from the input stream and all other messages are<br />

discarded from the pipeline.<br />

Pete changes the text string used by the LITERAL stage and also adds the<br />

COLLECT stage to gather all messages in the pipeline into one multiline message<br />

be<strong>for</strong>e displaying them.<br />

In this example, the

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

Saved successfully!

Ooh no, something went wrong!