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.

Full-Screen Automation<br />

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

and processing continues. If BNH150I was not returned, an error was<br />

detected. No further processing is done on the main menu panel.<br />

▌4▐ If the timeout message DWO369I is generated, an error has occurred<br />

during CORRWAIT. In this simple example, the error is captured.<br />

▌5▐ Messages not selected by LOCATE 1.7 /DWO369I/ are passed as an input<br />

stream to the connector A:. The messages are then written to the variable<br />

npdamsg. HALERT terminates if messages are contained in the npdamsg<br />

variable.<br />

▌6▐ The VET command is used to type /ALH/ on the NPDA command line.<br />

The default action key, ENTER, is passed to NPDA. NPDA responds as<br />

though the command ALH was entered on a terminal by a <strong>NetView</strong><br />

operator.<br />

▌7▐ There can be many pages of alert history. The last page of alert history is<br />

determined by finding PAGE x OF x on the NPDA panel, where x is the<br />

total number of alert history pages.<br />

▌8▐ VET NEXT ROWS collected a screen image from NPDA. This time we<br />

want to examine the screen image. Messages, other than BNH150I, are<br />

handled by the simple pipe connected with the SC: connector.<br />

▌9▐ After the data from this panel is reported to the caller of the example<br />

procedure, one line is reserved to trigger a command.<br />

▌10▐ A VET command ignores the line used to trigger it. /FORWARD/ is<br />

passed to NPDA with an Enter action key. If VET is coded as a stage,<br />

instead of a command, it is a subsequent stage and attempts to write the<br />

data line passed from TAKE 1 to the NPDA screen.

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

Saved successfully!

Ooh no, something went wrong!