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.

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

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

NCCF NETVIEW CNM01 OPER6 03/20/10 13:38:30<br />

* CNM01 PIPE NETVIEW MVS D A,L | CORRWAIT 20 | SEPARATE | CONSOLE<br />

" CNM01 IEE104I 15.26.57 10.079 ACTIVITY 367<br />

" CNM01 JOBS M/S TS USERS SYSAS INITS ACTIVE/MAX<br />

VTAM<br />

" CNM01 00000 00007 00001 00014 00002 00001/00300<br />

" CNM01 VLF VLF VLF NSW S LLA LLA LLA NSW<br />

S<br />

" CNM01 JES2 JES2 IEFPROC NSW S MYVTAM MYVTAM VTAM NSW<br />

S<br />

" CNM01 MYESSI MYESSI NETVIEW NSW S MYENV MYENV NETVI NSW<br />

S<br />

" CNM01 TSO TSO TCAS OWT S<br />

" CNM01 USER2 OWT<br />

Processing steps:<br />

1. The NETVIEW stage executes an MVS command and writes the messages as an<br />

MLWTO to the output stream.<br />

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

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

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

single-line messages.<br />

4. The CONSOLE stage reads the input stream and displays the messages on the<br />

screen.<br />

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

following example:<br />

NCCF NETVIEW CNM01 OPER6 03/20/10 13:39:30<br />

* CNM01 PIPE NETVIEW MVS D A,L | CORRWAIT 20 | CONSOLE<br />

" CNM01<br />

IEE104I 15.42.29 10.079 ACTIVITY 369<br />

JOBS M/S TS USERS SYSAS INITS ACTIVE/MAX VTAM<br />

00000 00007 00001 00014 00002 00001/00300<br />

VLF VLF VLF NSW S LLA LLA LLA NSW S<br />

JES2 JES2 IEFPROC NSW S MYVTAM MYVTAM VTAM NSW S<br />

MYESSI MYESSI NETVIEW NSW S MYENV MYENV NETVIEW NSW S<br />

TSO TSO TCAS OWT S<br />

USER2 OWT<br />

Building an MLWTO: COLLECT<br />

The COLLECT stage enables the user to create a single MLWTO from the messages<br />

in the pipeline.<br />

Example: Building an MLWTO from Single-Line Messages<br />

This example shows how to use the COLLECT stage within the PIPE command to<br />

gather the messages output from the LIST '' command, into an MLWTO:<br />

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

Output from the pipeline looks similar to:

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

Saved successfully!

Ooh no, something went wrong!