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

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

NCCF NETVIEW CNM19 OPER6 03/20/10 11:12:25<br />

| CNM19 READY FOR LUNCH ?<br />

Processing steps:<br />

1. The LITERAL stage writes the message READY FOR LUNCH? to the pipeline.<br />

2. The NETVIEW stage has an operand, the MSGROUTE command. The pipe<br />

contains one message, the READY FOR LUNCH message. The NETVIEW stage<br />

invokes the MSGROUTE command one time to act on the message in the<br />

pipeline, routing it to OPER6.<br />

If there are multiple messages in the pipeline, the NETVIEW stage invokes<br />

MSGROUTE once <strong>for</strong> each message. No copy of the routed message is written<br />

to the pipeline output stream. If the stage has an error, the MOE option causes<br />

a DWO369I message, with nonzero return code, to be placed in the pipe.<br />

Example 4: Acting on a Pipeline Message<br />

This example shows how to use the NETVIEW stage, without a command<br />

parameter, as a non-first stage to process messages in the pipeline.<br />

PIPE LITERAL ? LIST STATUS=TASKS ? | NETVIEW MOE | LOCATE /NOT ACTIVE/<br />

| CONSOLE<br />

Output from the pipeline follows:<br />

NCCF NETVIEW CNM29 OPER3 02/01/10 09:07:40<br />

* CNM29 PIPE LITERAL ? LIST STATUS=TASKS ? | NETVIEW MOE | LOCATE /NOT<br />

ACTIVE/| CONSOLE<br />

- CNM29 TYPE: OPT TASKID: TASKNAME: SQLOGTSK STATUS: NOT ACTIVE<br />

- CNM29 TYPE: OPT TASKID: TASKNAME: ALIASAPL STATUS: NOT ACTIVE<br />

- CNM29 TYPE: OPT TASKID: TASKNAME: DSISVRT STATUS: NOT ACTIVE<br />

- CNM29 TYPE: OPT TASKID: TASKNAME: DSIROVS STATUS: NOT ACTIVE<br />

- CNM29 TYPE: OPT TASKID: TASKNAME: CNM29VMT STATUS: NOT ACTIVE<br />

- CNM29 TYPE: OPT TASKID: TASKNAME: CNM29BRW STATUS: NOT ACTIVE<br />

- CNM29 TYPE: OPT TASKID: TASKNAME: DSIKREM STATUS: NOT ACTIVE<br />

- CNM29 TYPE: OPT TASKID: TASKNAME: VPDTASK STATUS: NOT ACTIVE<br />

- CNM29 TYPE: OPT TASKID: TASKNAME: DSIQTSK STATUS: NOT ACTIVE<br />

- CNM29 TYPE: OPT TASKID: TASKNAME: DSIRQJOB STATUS: NOT ACTIVE<br />

- CNM29 TYPE: <strong>OS</strong>T TASKID: RESOURCE: A01A441 STATUS: NOT ACTIVE<br />

- CNM29 TYPE: <strong>OS</strong>T TASKID: RESOURCE: A01A442 STATUS: NOT ACTIVE<br />

- CNM29 TYPE: <strong>OS</strong>T TASKID: RESOURCE: A01A443 STATUS: NOT ACTIVE<br />

- CNM29 TYPE: <strong>OS</strong>T TASKID: RESOURCE: A01A444 STATUS: NOT ACTIVE<br />

- CNM29 TYPE: <strong>OS</strong>T TASKID: RESOURCE: A01A445 STATUS: NOT ACTIVE<br />

- CNM29 TYPE: <strong>OS</strong>T TASKID: RESOURCE: A01A446 STATUS: NOT ACTIVE<br />

- CNM29 TYPE: <strong>OS</strong>T TASKID: RESOURCE: STATUS: NOT ACTIVE<br />

- CNM29 TYPE: <strong>OS</strong>T TASKID: RESOURCE: STATUS: NOT ACTIVE<br />

- CNM29 TYPE: <strong>OS</strong>T TASKID: RESOURCE: STATUS: NOT ACTIVE<br />

- CNM29 TYPE: NNT TASKID: RESOURCE: STATUS: NOT ACTIVE<br />

- CNM29 TYPE: NNT TASKID: RESOURCE: STATUS: NOT ACTIVE<br />

- CNM29 TYPE: NNT TASKID: RESOURCE: STATUS: NOT ACTIVE<br />

- CNM29 TYPE: NNT TASKID: RESOURCE: STATUS: NOT ACTIVE<br />

- CNM29 TYPE: NNT TASKID: RESOURCE: STATUS: NOT ACTIVE<br />

Processing steps:<br />

1. The LITERAL stage writes the LIST STATUS=TASKS command to the pipe.<br />

2. The NETVIEW stage reads the message in the pipe (the LIST command) and<br />

separates the words into the command and its arguments. The command is<br />

then invoked. MOE writes the DWO369I message to the pipeline if the stage<br />

generates a nonzero return code. In this example, DWO369I was not generated.<br />

If there are multiple messages in the pipeline, the NETVIEW stage runs one<br />

time <strong>for</strong> each message.

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

Saved successfully!

Ooh no, something went wrong!