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.

The CORRWAIT stage does not insert any messages because there is no prior<br />

command to generate them, but CORRWAIT does not wait unless there is some<br />

stage connected to its output stream.<br />

Example: Discarding Pipeline Contents<br />

To run the LIST command, store the results in variables named MYVAR1,<br />

MYVAR2, and so <strong>for</strong>th, discard the pipeline contents, and add and display a text<br />

message, code the following instructions in a command list:<br />

HOLETEST CLIST<br />

&CONTROL ERR<br />

*<br />

* NETVIEW COMMAND LIST LANGUAGE<br />

*<br />

PIPE NETVIEW LIST STATUS=TASKS +<br />

| STEM MYVAR +<br />

| HOLE +<br />

| LITERAL ?HOLETEST IS RUNNING? +<br />

| CONSOLE<br />

*<br />

&EXIT<br />

PIPE HOLE<br />

Chapter 2. Pipeline Stages and Syntax 139

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

Saved successfully!

Ooh no, something went wrong!