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.

Stage 7 writes output to stream 1, "Task Task’s ".<br />

Stage 7 reads input from stream 3, "type ID ".<br />

Stage 7 writes output to stream 1, "type ID ".<br />

Terminating stage number 7, "FANIN ".<br />

The first lines show the FANIN input and output streams and connected stages.<br />

Each stage is shown along with its stage number within the pipeline.<br />

Next, the first few characters of each message flowing on the data streams being<br />

debugged are shown. Each line indicates the stage number and whether the<br />

message is flowing on an input or output data stream. The data stream number is<br />

also included.<br />

Note: In this example with only one DEBUG option in the pipeline, it is obvious<br />

that the FANIN stage is being traced without having to explicitly specify<br />

“Stage 7”. However, the stage number is important when multiple DEBUG<br />

options are coded in a single pipeline. The stage number, in that case,<br />

indicates the stage <strong>for</strong> which activity is being traced.<br />

Finally, the last message shows that the stage termination conditions have been<br />

met and that FANIN is terminating. For in<strong>for</strong>mation on stage termination<br />

conditions, see the individual stage descriptions in Chapter 2, “Pipeline Stages and<br />

Syntax,” on page 19.<br />

The following coding rules apply to DEBUG as a stage option.<br />

v DEBUG can be added to any pipe stage after the label and immediately be<strong>for</strong>e<br />

the stage.<br />

v The DEBUG option must be enclosed in parenthesis.<br />

v If you need to include DEBUG on the first stage in the pipeline and you have<br />

not specified pipeline options, include an empty pipeline option string be<strong>for</strong>e<br />

DEBUG. For example, the following command cannot be used:<br />

PIPE (DEBUG) NETV LIST X|...<br />

However, either of the following commands works:<br />

PIPE () (DEBUG) NETV LIST X|...<br />

PIPE | (DEBUG) NETV LIST X|...<br />

v For stages modifying the action of other stages, <strong>for</strong> example NOT and CASEI,<br />

include DEBUG be<strong>for</strong>e the modifier. For example, use the following command:<br />

PIPE ...|(DEBUG) CASEI LOCATE /X/|...<br />

But, not this:<br />

PIPE ...|CASEI (DEBUG) LOCATE /X/|...<br />

DEBUG Pipeline Option<br />

DEBUG can also be included in the pipeline options. When included as a pipeline<br />

option, DEBUG affects all stages within the pipeline.<br />

Data Stream Tracing: Coding DEBUG 1 in the pipeline options is the same as<br />

coding DEBUG on each pipeline stage. For example:<br />

PIPE (NAME SAMP DEBUG 1)<br />

| < MYFILE<br />

| STRIP TRAILING / /<br />

| JOINCONT TRAILING /$/<br />

| CONSOLE<br />

Is the same as:<br />

Debugging <strong>NetView</strong> Pipelines<br />

Chapter 8. Debugging <strong>NetView</strong> Pipelines 349

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

Saved successfully!

Ooh no, something went wrong!