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 LOCATE stage selects inactive tasks and writes that in<strong>for</strong>mation to the<br />

pipeline.<br />

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

Running a VTAM Command: VTAM<br />

The VTAM stage enables the user to run a DISPLAY, VARY, or MODIFY VTAM<br />

command in a local or remote domain.<br />

Example 1: Issuing a VTAM Command<br />

This example shows how to use the VTAM stage to issue a command:<br />

PIPE VTAM D NET,STATIONS,SCOPE=ALL<br />

| CORRWAIT 5<br />

| NLOCATE /IST097I/<br />

| TAKE 1<br />

| CONSOLE<br />

Output from the pipeline follows:<br />

NCCF NETVIEW CNM01 OPER6 05/02/10 11:09:23<br />

* CNM01 PIPE VTAM D NET,STATIONS,SCOPE=ALL | CORRWAIT 5 | NLOCATE /IST097I/<br />

| TAKE 1 | CONSOLE<br />

’ CNM01<br />

IST350I DISPLAY TYPE = STATIONS<br />

IST393I PU T4/5 MAJOR NODE A01MPU , SUBAREA = 1<br />

IST172I NO LINK STATIONS EXIST<br />

IST314I END<br />

Processing steps:<br />

1. The VTAM stage invokes the DISPLAY command and places the corresponding<br />

response messages in the pipeline.<br />

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

VTAM. CORRWAIT must be used when sending commands to other<br />

applications, such as VTAM or MVS, or to another <strong>NetView</strong> system to allow<br />

enough time <strong>for</strong> a response to return.<br />

3. The NLOCATE stage discards the IST097I message and passes the next<br />

message, an MLWTO, to its output stream.<br />

4. The TAKE 1 stage selects the first message in its input stream and also imposes<br />

an early termination to the timer on the CORRWAIT stage.<br />

5. The CONSOLE stage reads the message and displays it.<br />

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

This example shows how to use the VTAM stage with the MOE option to generate<br />

a message containing a return code to the pipeline. The D NETT, TERMS<br />

command is purposely incorrect.<br />

PIPE VTAM MOE D NETT,TERMS | CORRWAIT 5 | CONSOLE<br />

Output from the pipeline follows:<br />

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

NCCF NETVIEW CNM01 OPER6 04/29/10 11:01:20<br />

* CNM01 PIPE VTAM MOE D NETT,TERMS | CORRWAIT 5 | CONSOLE<br />

- CNM01 DSI071I INVALID VTAM COMMAND<br />

- CNM01 DWO369I VTAM STAGE (1) HAD RETURN CODE 8.<br />

CNM01 IST191I DISPLAY SYNTAX ERROR<br />

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

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

Saved successfully!

Ooh no, something went wrong!