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.

NCCF NETVIEW CNM01 OPER6 03/20/10 13:40:00<br />

* CNM01 PIPE NETVIEW LIST ’’ | COLLECT | CONSOLE<br />

- CNM01<br />

STATION: OPER6 TERM: A01A701<br />

HCOPY: NOT ACTIVE PROFILE: DSIPROFA<br />

STATUS: ACTIVE<br />

DOMAIN LIST: CNM01 (I) CNM02 (I) CNM20 (I) CNM99 (I)<br />

ACTIVE SPAN LIST: NONE<br />

END OF STATUS DISPLAY<br />

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

Processing steps:<br />

1. The NETVIEW stage executes a LIST command and writes the results to the<br />

output stream as single-line messages.<br />

2. The COLLECT stage reads its input stream and collects the single-line messages<br />

into one MLWTO, be<strong>for</strong>e writing the MLWTO to the output stream. Notice that<br />

there is only one message prefix <strong>for</strong> an MLWTO.<br />

3. The CONSOLE stage reads its input and displays the MLWTO.<br />

Note: If the COLLECT stage is not used, the pipeline output looks similar to the<br />

following example:<br />

NCCF NETVIEW CNM01 OPER6 04/14/10 13:45:00<br />

* CNM01 PIPE NETVIEW LIST ’’ | CONSOLE<br />

- CNM01 STATION: OPER6 TERM: A01A701<br />

- CNM01 HCOPY: NOT ACTIVE PROFILE: DSIPROFA<br />

- CNM01 STATUS: ACTIVE<br />

- CNM01 DOMAIN LIST: CNM01 (I) CNM02 (I) CNM20 (I) CNM99 (I)<br />

- CNM01 ACTIVE SPAN LIST: NONE<br />

- CNM01 END OF STATUS DISPLAY<br />

Selecting Messages by Content: LOCATE, NLOCATE, T<strong>OS</strong>TRING<br />

Several stages select pipeline messages. That is, they read all messages in the<br />

pipeline, but write only those that meet some selection criteria to the stage's output<br />

stream. This section describes filters that select messages based on the content of<br />

the message itself. You can:<br />

v Keep all messages that contain a match <strong>for</strong> a specified text string (LOCATE)<br />

v Discard all messages that contain a match <strong>for</strong> a specified text string (NLOCATE)<br />

v Keep messages up to and including the message that contains a match <strong>for</strong> a<br />

specified text string (T<strong>OS</strong>TRING)<br />

All of these filters are case-sensitive: they pay attention to uppercase and<br />

lowercase. To a filter, the words Apple and apple are not equal.<br />

Sometimes the <strong>NetView</strong> program automatically translates input to uppercase. An<br />

easy way to determine whether this is happening is to insert a CONSOLE stage<br />

and <strong>notice</strong> whether the output to the screen is in uppercase. If case sensitivity is<br />

required, code the PIPE command in a REXX command list using the ADDRESS<br />

NETVASIS instruction to establish an environment sensitive to case. For additional<br />

in<strong>for</strong>mation about REXX command lists, see <strong>IBM</strong> <strong>Tivoli</strong> <strong>NetView</strong> <strong>for</strong><br />

z/<strong>OS</strong> <strong>Programming</strong>: REXX and the <strong>NetView</strong> Command List Language.<br />

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

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

Saved successfully!

Ooh no, something went wrong!