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 />

VET First Stage<br />

The VET command used as a first stage VET command creates the input stream <strong>for</strong><br />

subsequent pipe stages by reading data from the virtual screen and passing the<br />

data in the <strong>for</strong>m of messages to the output stream.<br />

If the application running on the V<strong>OS</strong>T presents a full-screen, VET produces a<br />

special message, BNH150I, in the pipe containing in<strong>for</strong>mation about the V<strong>OS</strong>T<br />

virtual screen. If the application does not present a full-screen, messages generated<br />

by the application are returned.<br />

See “Handling Returned Messages” on page 324 <strong>for</strong> in<strong>for</strong>mation about BNH150I<br />

and other messages that can be returned by PIPE VET.<br />

VET, as a first stage, returns the data on the virtual screen in one of two ways:<br />

ROWS<br />

Requests that the screen data be presented to the output stream as 24 lines<br />

of 80 characters each following the BNH150I message header. ROWS<br />

returns the data exactly as it is displayed on the virtual screen.<br />

FIELDS<br />

Requests that each data field on the virtual screen be presented as one line<br />

following the BNH150I message header.<br />

See “Handling Returned Messages” on page 324 <strong>for</strong> in<strong>for</strong>mation about the <strong>for</strong>mat<br />

of the data returned by VET ROWS and VET FIELDS.<br />

The VET first stage also enables you to specify when you want to read the virtual<br />

screen. The following options are available:<br />

CURRENT<br />

Specifies that the content of the virtual screen at the time VET executes is<br />

to be presented to the output stream. A VET CURRENT after an ATTACH<br />

and be<strong>for</strong>e a VET NEXT returns a blank screen of data.<br />

NEXT Specifies that the next change made to the virtual screen is to be presented<br />

to the output stream. In general, the data passed to the output stream is<br />

not a complete screen image. Instead, only the portions of the screen that<br />

have been changed since the last time a first stage VET was executed are<br />

passed to the output stream. If used with ROWS, all unchanged fields are<br />

filled with X'FF'.<br />

VET NEXT must be used to retrieve the first screen of data after an<br />

ATTACH.<br />

VET NEXT is usually followed by CORRWAIT. For more in<strong>for</strong>mation about<br />

CORRWAIT, see Chapter 2, “Pipeline Stages and Syntax,” on page 19.<br />

A VET Command or Subsequent Stage<br />

After reading data from the virtual screen using the VET first stage, the subsequent<br />

stage <strong>for</strong>m of VET is used to interact with the application running on the V<strong>OS</strong>T by<br />

writing data to the virtual screen and simulating the pressing of the PF, PA, or<br />

Enter keys. To the application running on the V<strong>OS</strong>T, it appears as though a human<br />

operator is entering data on the application full-screen.<br />

Chapter 5. Full-Screen Automation 321

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

Saved successfully!

Ooh no, something went wrong!