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> Pipelines Device Drivers<br />

SDSF SYSLOG 2.101 IPO1 DATE 05/17/10 LINE 2,024 COLUMNS 51 130<br />

COMMAND INPUT ===> SCROLL ==HALF<br />

CNM01 OPER6 * PIPE NETVIEW MVS D A,L | CORRWAIT 5 | LOGTO<br />

CNM01 OPER6 *+ NETLOG SYSLOG<br />

D A,L<br />

IEE104I 15.34.02 99.137 ACTIVITY 571<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 />

CNM01 OPER6 " IEE104I 15.34.02 99.137 ACTIVITY 571<br />

CNM01 OPER6 " JOBS M/S TS USERS SYSAS<br />

CNM01 OPER6 "+ INITS ACTIVE/MAX VTAM<br />

CNM01 OPER6 " 00000 00007 00001 00014<br />

CNM01 OPER6 "+ 00002 00001/00300<br />

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

CNM01 OPER6 "+ LLA LLA NSW S<br />

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

CNM01 OPER6 "+ MYVTAM VTAM NSW S<br />

CNM01 OPER6 " TSO TSO TCAS OWT S MYESSI<br />

CNM01 OPER6 "+ MYESSI NETVIEW NSW S<br />

CNM01 OPER6 " MYENV MYENV NETVIEW NSW S<br />

CNM01 OPER6 " USER2 OWT<br />

Processing steps:<br />

1. The NETVIEW stage invokes the MVS command and places the corresponding<br />

response message, in this case an MLWTO, in the pipeline.<br />

2. The CORRWAIT stage allows 5 seconds <strong>for</strong> each message to return from MVS.<br />

CORRWAIT must be used when sending commands to other applications, such<br />

as VTAM or MVS, to allow enough time <strong>for</strong> a response to return.<br />

3. The LOGTO stage reads the MLWTO and writes it to the <strong>NetView</strong> log and the<br />

system log.<br />

Note: There is no output to the screen from this pipeline other than the echo of<br />

the PIPE command. The results of the command appear in the system<br />

log twice because both MVS and the LOGTO pipe stage have logged the<br />

message.<br />

Interfacing with Other Applications: NETVIEW, VTAM<br />

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

Two useful device drivers, VTAM and NETVIEW, can be used to invoke VTAM<br />

and <strong>NetView</strong> commands respectively. Responses from these commands are inserted<br />

into the pipeline <strong>for</strong> manipulation by subsequent steps. From there, you can use<br />

another device driver to put the data wherever you need it.<br />

Running a <strong>NetView</strong> Command: NETVIEW<br />

Use the NETVIEW stage to run <strong>NetView</strong> commands (local or cross-domain) and<br />

MVS or local VTAM commands with the RMTCMD command. The resulting<br />

messages are placed in the pipe.<br />

Note: To issue MVS commands successfully in a pipeline, use extended multiple<br />

console support (EMCS) consoles.<br />

Example 1: Issuing an MVS Command<br />

This example shows how to use the NETVIEW stage to run an MVS command:

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

Saved successfully!

Ooh no, something went wrong!