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.

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

Clogged Pipelines<br />

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

Complex pipelines with multiple data streams can become deadlocked or clogged.<br />

Clogs are caused by errors in the structure of the data stream connections.<br />

In a clogged pipeline one stage requires data from another and this data cannot be<br />

provided. All pipeline processing stops.<br />

A clog occurs when either:<br />

v A stage needs to give data to another stage that cannot receive the data.<br />

v A stage needs to get data from another stage that cannot provide the data.<br />

The following example creates a clogged pipeline, because it attempts to read a<br />

file, convert the last two lines into label lines, and collect all the lines into a<br />

multiline message.<br />

/* REXX Fragment */<br />

...<br />

’PIPE (NAME CLOGGER END \)’,<br />

’|

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

Saved successfully!

Ooh no, something went wrong!