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.

2. The CORRWAIT stage allows a 60 second wait <strong>for</strong> messages to be returned<br />

from VTAM, resetting the timer as each message is received. When the<br />

CORRWAIT timer expires, further messages generated by the NETVIEW stage<br />

are not accepted into the pipeline.<br />

3. The SEPARATE stage reads its input stream and splits the MLWTO into<br />

single-line messages, each message preserving the characteristics of the<br />

MLWTO.<br />

4. The T<strong>OS</strong>TRING stage examines each message <strong>for</strong> an occurrence of IST482I,<br />

which begins in column 1. Each message is read and passed to the output<br />

stream until a match is found.<br />

5. The CONSOLE stage reads its input and displays the messages.<br />

Selecting Messages by Position: TAKE, DROP<br />

Pipeline messages are processed by a stage respective to the order of their position<br />

in the pipeline. Several stages enable the user to either keep or discard records<br />

based on their position.<br />

You can specify the first or last n messages to be:<br />

v Kept in the pipeline<br />

v Discarded from the pipeline<br />

Keeping the First or Last n Messages: TAKE<br />

Example 1: Keeping the First two Messages in the Pipeline<br />

This example shows how to use the TAKE stage to select the first two messages to<br />

remain in the pipeline:<br />

PIPE NETVIEW D NET,CDRMS | CORRWAIT 60 | TAKE 2 | CONSOLE<br />

Output from the pipeline looks similar to:<br />

NCCF NETVIEW CNM01 OPER5 03/01/10 11:00:00<br />

* CNM01 PIPE NETVIEW D NET,CDRMS | CORRWAIT 60 | TAKE 2 | CONSOLE<br />

CNM01 IST097I DISPLAY ACCEPTED<br />

’ CNM01<br />

IST350I DISPLAY TYPE = CDRMS<br />

IST089I A01CDRM TYPE = CDRM SEGMENT , ACTIV<br />

IST482I A01M ACTIV, SA 1, EL 1, NETID = NETA<br />

IST482I A02M NEVAC, SA 2, EL 1, NETID = NETA<br />

IST482I A99M NEVAC, SA 99, EL 1, NETID = NETA<br />

IST482I B20M NEVAC, SA N/A, EL N/A, NETID = NETB<br />

IST314I END<br />

<strong>NetView</strong> Pipeline Filters<br />

Processing steps:<br />

1. The NETVIEW stage executes the DISPLAY command and writes messages to<br />

the output stream.<br />

2. The CORRWAIT stage allows a 60 second wait <strong>for</strong> a message to be returned<br />

from VTAM, then resets the timer to wait <strong>for</strong> the next message. When the<br />

CORRWAIT timer expires, messages generated by the NETVIEW stage are not<br />

accepted into the pipeline.<br />

3. Be<strong>for</strong>e the 60 seconds expire, the first message DISPLAY ACCEPTED is passed to<br />

TAKE and is passed on to the output stream. The CORRWAIT timer is reset.<br />

4. Again, be<strong>for</strong>e the 60 seconds expire, the second message, an MLWTO, is passed<br />

to TAKE and is passed to the output stream. TAKE has now selected 2<br />

messages; there<strong>for</strong>e, it terminates.<br />

Chapter 4. <strong>NetView</strong> Pipeline Filters 311

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

Saved successfully!

Ooh no, something went wrong!