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.

PIPE CORRWAIT<br />

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

examine the incoming messages one at a time and can create a named SAFE, if<br />

necessary. Like the DROP stage in this example, your procedure can produce a<br />

message to drive PIPEND when it is appropriate to end the wait.<br />

Example: Early timeout following an expected message flow<br />

This pipe waits three seconds <strong>for</strong> responses to begin and one second following any<br />

(unexpected) single-line message(s). Following receipt of an MLWTO (the expected<br />

IEE114I), it times out immediately.<br />

PIPE MVS D A,L | WAIT 3 10 0 | CONS<br />

Example: Using a Secondary Output Stream with CORRWAIT<br />

CORRWAIT can be coded to end when one of the following situations occurs:<br />

v 60 seconds has elapsed.<br />

v The operator entered the GO command.<br />

v A task end or ABENDS.<br />

For CORRWAIT to process in this manner, include the following statements in<br />

your pipeline specification:<br />

...<br />

|A: CORRWAIT 60<br />

...<br />

%<br />

A:<br />

|NLOCATE 1.11 /+0000000000/<br />

|TAKE 1<br />

|HOLE<br />

...<br />

Assuming that the pipeline end character was defined as a %, the simple pipeline<br />

after the A: connector processes the secondary output stream from CORRWAIT 60.<br />

If a completion code other than +0000000000 is processed, CORRWAIT terminates.

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

Saved successfully!

Ooh no, something went wrong!