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.

3. The third LITERAL stage writes the AAA message text string to the output<br />

stream in front of the BBB which is in front of the CCC message.<br />

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

Copying Pipeline Contents to a Log: LOGTO<br />

The LOGTO stage enables the user to send a copy of the pipeline contents to a<br />

specified log. The contents also remain in the pipeline <strong>for</strong> processing by the next<br />

stage.<br />

You can use any of several options to control the logging destination. The<br />

CANZLOG, NETLOG, SYSLOG, and HCYLOG options identify the <strong>NetView</strong>,<br />

system and hardcopy logs respectively. Messages in the pipeline are sent to the<br />

specified log regardless of how the system defaults and overrides options are set.<br />

The ALL option indicates that messages in the pipeline are sent to all the logs.<br />

The asterisk (*) option indicates that messages are logged consistently with how<br />

the <strong>NetView</strong> system defaults and overrides are set.<br />

Example: Logging Output from an MVS Command<br />

This example shows how to use the LOGTO stage to log in<strong>for</strong>mation to both the<br />

<strong>NetView</strong> log and the system log:<br />

PIPE NETVIEW MVS D A,L | CORRWAIT 5 | LOGTO NETLOG SYSLOG<br />

Output in the <strong>NetView</strong> log follows:<br />

STATMON.BROWSE ACTS NETWORK LOG FOR 04/14/10 (92300) COLS 037 114<br />

H<strong>OS</strong>T:H<strong>OS</strong>T1 *1* *2* *3* *4* S:CSR<br />

---4----+----5----+----6----+----7----+----8----+----9----+---10----+---11----<br />

PIPE NETVIEW MVS D A,L | CORRWAIT 5 | LOGTO NETLOG SYSLOG<br />

IEE104I 15.17.55 99.104 ACTIVITY 513<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 />

TSO TSO TCAS OWT S MYESSI MYESSI NETVIEW NSW S<br />

MYENV MYENV NETVIEW NSW S<br />

USER2 OWT<br />

Output in the system log follows:<br />

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

Chapter 3. <strong>NetView</strong> Pipelines Device Drivers 289

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

Saved successfully!

Ooh no, something went wrong!