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.

PIPE NETVIEW MVS D A,L | CORRWAIT 5 | TAKE 1 | CONSOLE<br />

Output from the pipeline follows:<br />

NCCF NETVIEW CNM01 OPER6 05/17/10 17:21:19<br />

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

" CNM01<br />

IEE104I 17.21.12 99.137 ACTIVITY 620<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 />

Processing steps:<br />

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

response messages in the pipe.<br />

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

Note that MVS is actually a <strong>NetView</strong> command which sends command text to<br />

the MVS system. Use CORRWAIT when sending commands to other<br />

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

return.<br />

3. By selecting the first message, the TAKE stage imposes early termination of the<br />

CORRWAIT stage.<br />

4. The CONSOLE stage reads the messages and displays them.<br />

Example 2: Generating a Return Code from the NETVIEW Stage<br />

This example shows how the MOE option with the NETVIEW stage generates a<br />

message containing a return code. The command, NONESUCH, is purposely<br />

incorrect.<br />

PIPE NETVIEW MOE NONESUCH | CONSOLE<br />

Output from the pipeline follows:<br />

NCCF NETVIEW CNM01 OPER6 05/17/10 17:05:01<br />

* CNM01 PIPE NETVIEW MOE NONESUCH | CONSOLE<br />

- CNM01 DSI002I INVALID COMMAND: ’NONESUCH’<br />

- CNM01 DWO369I NETVIEW STAGE (1) HAD RETURN CODE 4<br />

Processing steps:<br />

1. The NETVIEW stage runs the NONESUCH command and places the messages<br />

in the pipe.<br />

2. The CONSOLE stage reads the messages and displays them.<br />

Example 3: Acting on Pipeline Data<br />

This example shows how to use the NETVIEW stage to process data incoming to a<br />

command through the pipeline. In the following example, an operator named<br />

ORIGOPER sends a message to another operator named OPER6.<br />

PIPE LITERAL % READY FOR LUNCH ? %<br />

| NETVIEW MOE MSGROUTE OPER6 HOLD(Y)<br />

Output (on OPER6's screen) from the pipeline follows:<br />

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

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

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

Saved successfully!

Ooh no, something went wrong!