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.

<strong>NetView</strong> Pipelines Device Drivers<br />

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

9. The third CONSOLE stage reads the CCC message in its input stream and writes<br />

it on the screen. It also remains in the pipeline, although there are no additional<br />

stages to process it.<br />

Example 4: Using Multiple CONSOLE Stages with COLLECT<br />

This example shows how to modify the previous example by using the COLLECT<br />

stage preceding each CONSOLE stage. COLLECT gathers single-line messages into<br />

an MLWTO, which affects the structure of the output:<br />

PIPE LITERAL ? This is the CCC message ?<br />

| COLLECT<br />

| CONSOLE<br />

| LITERAL / This is the BBB message /<br />

| COLLECT<br />

| CONSOLE<br />

| LITERAL ! This is the AAA message !<br />

| COLLECT<br />

| CONSOLE<br />

Output from the pipeline looks like this:<br />

NCCF NETVIEW CNM01 OPER6 02/01/10 09:19:28<br />

* CNM01 PIPE LITERAL ? THIS IS THE CCC MESSAGE ? | COLLECT | CONSOLE |<br />

LITERAL / THIS IS THE BBB MESSAGE / | COLLECT | CONSOLE | LITERAL !<br />

THIS IS THE AAA MESSAGE ! | COLLECT | CONSOLE<br />

| CNM01 THIS IS THE CCC MESSAGE (written by console stage # 1)<br />

| CNM01 (written by console stage # 2)<br />

THIS IS THE BBB MESSAGE<br />

THIS IS THE CCC MESSAGE<br />

| CNM01 (written by console stage # 3)<br />

THIS IS THE AAA MESSAGE<br />

THIS IS THE BBB MESSAGE<br />

THIS IS THE CCC MESSAGE<br />

Copying Held Messages into the Pipeline: HELDMSG<br />

The HELDMSG stage enables the user to copy messages from the operator's held<br />

message queue into the pipeline.<br />

Example 1: Routing Held Messages<br />

This example shows how to use the HELDMSG stage to copy held messages into<br />

the pipeline and route them to another operator, OPER3:<br />

PIPE HELDMSG | NETVIEW MSGROUTE OPER3<br />

The existing held message at ORIGOPER's screen follows:<br />

NCCF NETVIEW CNM19 ORIGOPER 05/17/10 10:18:43<br />

E CNM19 IEE136I LOCAL: TIME=10.18.28 DATE=1999.137 GMT: TIME=15.18.28<br />

DATE=2010.137<br />

Output from the pipeline on OPER3's screen looks like this:<br />

NCCF NETVIEW CNM19 OPER3 05/17/10 10:26:46<br />

E CNM19 IEE136I LOCAL: TIME=10.26.31 DATE=2010.137 GMT: TIME=15.26.31<br />

DATE=2010.137<br />

Processing steps:<br />

1. The HELDMSG stage writes a copy of the held message queue to the pipeline.

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

Saved successfully!

Ooh no, something went wrong!