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.

Introduction and Concepts<br />

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

For in<strong>for</strong>mation on the number of supported streams and the termination<br />

conditions of each stage, see the description of each stage in Chapter 2, “Pipeline<br />

Stages and Syntax.”<br />

First and Subsequent Stages<br />

Another important pipeline concept is that of first and subsequent stages.<br />

A stage that generates an output data stream without requiring an input data<br />

stream is called a first stage. First stages are used to start the process.<br />

Attention: First stages can occur at the beginning of a pipeline specification or<br />

anywhere in a complex pipeline where an input stream is not defined. Examples of<br />

first stages are:<br />

v < (From Disk)<br />

v ENVDATA<br />

v HELDMSG<br />

v QSAM<br />

A stage that accepts input from a stage located be<strong>for</strong>e it within a pipeline<br />

specification is called a subsequent stage. Examples of stages that can only be<br />

subsequent stages are:<br />

v CHANGE<br />

v CONSOLE<br />

v LOCATE<br />

v STRIP<br />

Some stages can be used as a first stage or a subsequent stage. Examples of these<br />

are:<br />

v LITERAL<br />

v VAR<br />

Some stages can be used as a first stage or a subsequent stage. However, they have<br />

a different syntax <strong>for</strong> first stage and subsequent stage <strong>for</strong>ms. Examples of these are:<br />

v NETVIEW<br />

v VET<br />

Figure 8 shows an example of a pipe stage that can be used as a first stage and as<br />

a subsequent stage. In the first stage example, the string HI THERE! is written to the<br />

console. In the subsequent stage example, the NETVIEW stage runs the HELP<br />

command <strong>for</strong> PIPE LITERAL. The <strong>NetView</strong> online help in<strong>for</strong>mation <strong>for</strong> the PIPE<br />

LITERAL command is displayed on the console after writing the string THE<br />

FOLLOWING IS HOW TO USE THE LITERAL PIPE STAGE.<br />

LITERAL as a First Stage<br />

PIPE LITERAL /HI THERE!/<br />

|CONSOLE<br />

LITERAL as a Subsequent Stage<br />

PIPE NETVIEW (NOPANEL) HELP PIPE LITERAL<br />

|LITERAL /THE FOLLOWING IS HOW TO USE THE LITERAL PIPE STAGE/<br />

|CONSOLE<br />

Figure 8. Examples of First and Subsequent Stages

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

Saved successfully!

Ooh no, something went wrong!