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.

Full-Screen Automation<br />

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

When using VET on subsequent stages, you can specify the data to be written to<br />

the virtual screen, the cursor position where the data is written, and the action key<br />

to be pressed after the data is written to the virtual screen.<br />

For example, ATTACH NPDA creates a V<strong>OS</strong>T running NPDA. The first panel<br />

presented on the virtual screen is NPDA-01A. To request the total events panel<br />

(NPDA-40A):<br />

NETVIEW VET /2/<br />

In this example, a row.col was not specified, so the string /2/ is written to the<br />

V<strong>OS</strong>T in the first unprotected field on the panel at, or after, the current cursor<br />

position. Because NPDA-01A only has one unprotected field, which is the<br />

command line, 2 is written to the unprotected field. The VET action key defaults to<br />

ENTER. After 2 is written to the command line, in<strong>for</strong>mation is passed to NPDA<br />

indicating that the Enter key was executed on the V<strong>OS</strong>T. NPDA responds to the<br />

V<strong>OS</strong>T as though a human operator entered 2, which is a NPDA subcommand or<br />

selection choice, and pressed the Enter key.<br />

Notes:<br />

1. You can use ENTER, PF, PA, and CLEAR keys as action keys. ENTER is the<br />

default.<br />

2. Using NOKEY as an action key enables you to enter data on the virtual screen,<br />

but indicates that no action is to be taken. This is the same as when a human<br />

operator types data on a panel and does not press an action key, such as Enter,<br />

to indicate to the application that the input is complete.<br />

3. If the application running on the V<strong>OS</strong>T enables dynamic remapping of PF and<br />

PA keys using the NCCF SET command, the PF and PA key action keys cannot<br />

be used on the VET command. Instead, use the command to be executed in the<br />

/string/ with an Enter action key. For example, if the application running on<br />

the V<strong>OS</strong>T can have PF keys remapped and as a default has PF3 set to END,<br />

code VET /END/ ENTER.<br />

Using Delimiters<br />

Delimited strings can be used when VET is a command.<br />

Strings to be written to the virtual screen must be enclosed in delimiters. The first<br />

nonblank character encountered after the stage name or row.col is the delimiter,<br />

which establishes the boundary of the text string used by VET. The delimited<br />

string ends when the same character is encountered a second time.<br />

If you want to execute an action key on the V<strong>OS</strong>T without entering data on the<br />

virtual screen, specify either a null string with two delimiters with no space<br />

between them or omit the /string/ altogether. For example, if you want to press<br />

PF8 without entering data on a panel, code either of the following statements:<br />

NETVIEW VET // PF8<br />

VET PF8<br />

Writing in Protected Fields<br />

After a string is written to a panel on the virtual screen, the cursor is moved to the<br />

next field on the panel. If you attempt to write a string to a protected field, the<br />

cursor moves to the next unprotected field be<strong>for</strong>e writing the data. If there are no<br />

more unprotected fields, the cursor wraps back to the top of the panel and finds<br />

the first unprotected field and writes the data. Strings are truncated if they are<br />

longer than the unprotected field in which they are written.

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

Saved successfully!

Ooh no, something went wrong!