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.

Chapter 5. Full-Screen Automation<br />

This chapter describes general-use programming interface and associated guidance<br />

in<strong>for</strong>mation. The in<strong>for</strong>mation describes how to interact with <strong>NetView</strong> full-screen<br />

panels from customer-written applications and the commands provided by the<br />

<strong>NetView</strong> program to create, manage, and terminate full-screen applications <strong>for</strong><br />

automation. The <strong>NetView</strong> commands are:<br />

v ATTACH<br />

v DETACH<br />

v VET<br />

What Is Full-Screen Automation<br />

The full-screen automation function enables a program to interact with <strong>NetView</strong><br />

full-screen applications in the same way an operator interacts with a <strong>NetView</strong><br />

system. From a REXX, PL/I, or C program, you can:<br />

v Read data from a <strong>NetView</strong> application panel.<br />

v Write data to a <strong>NetView</strong> application panel.<br />

v Press PF, PA, Enter, or clear keys on a <strong>NetView</strong> application panel.<br />

Full-screen automation can access other full-screen applications using the Terminal<br />

Access Facility (TAF). For considerations when using TAF, see “Partial Screens” on<br />

page 329.<br />

Full-screen automation is intended as an automation tool and not a function to<br />

assist <strong>NetView</strong> operators by providing fast-path or other simplified commands.<br />

A Simple Example<br />

Full-screen automation has three main steps:<br />

1. Starting a <strong>NetView</strong> application. A full-screen automation program interacts with<br />

the <strong>NetView</strong> application. The <strong>NetView</strong> application is started with the ATTACH<br />

command.<br />

2. Interacting with the <strong>NetView</strong> application. This is done with the VET command<br />

and pipe stage.<br />

3. Terminating the <strong>NetView</strong> application. This can be done explicitly with the<br />

DETACH command or allowed to occur implicitly.<br />

Consider a simple procedure to return alarm threshold in<strong>for</strong>mation <strong>for</strong> a modem<br />

and write the in<strong>for</strong>mation to the console. The example in Figure 15 on page 316<br />

does not show all the options available in full-screen automation, nor does it<br />

contain error handling. Instead, the example illustrates the sequence of starting,<br />

interacting with it, and terminating the application.<br />

© Copyright <strong>IBM</strong> Corp. 1997, 2011 315

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

Saved successfully!

Ooh no, something went wrong!