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

Handling Returned Messages<br />

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

In this case, a stem variable is created with five values. The first four are null. A<br />

null value passed to VET places nothing in an unprotected field, and the cursor<br />

skips to the next field. In the previous example, VET begins in column 1 row 1,<br />

skips the first four unprotected fields (*1*, *2*, *3*, and *4*), and places an X in the<br />

fifth unprotected field (.....1 NCP/CA/LAN/PL). When the entire stem is written<br />

to the panel, the Enter key is pressed.<br />

Hint: Consider the following items when coding your full-screen automation<br />

program:<br />

v The /string/ coded on a VET command can be a pipeline specification.<br />

v Be<strong>for</strong>e detaching a V<strong>OS</strong>T, you might want to code NETVIEW VET /LOGOFF/,<br />

or the appropriate logoff, or termination command <strong>for</strong> the application running<br />

on the V<strong>OS</strong>T.<br />

v A VET first stage returns a blank screen if a logoff or termination command was<br />

executed <strong>for</strong> the application on the V<strong>OS</strong>T.<br />

The processing of message BNH150I is key to full-screen automation. All<br />

full-screen data returned by a VET first stage is <strong>for</strong>matted in this multiline<br />

message.<br />

The first line of the multiline message is:<br />

BNH150I <strong>for</strong>mat/action OUTPUT FOR 'application' RECEIVED FROM attachname<br />

The following message variables, which are contained in this BNH150I message<br />

header line, indicate the options specified on the VET stage, the V<strong>OS</strong>T name, and<br />

the application name:<br />

<strong>for</strong>mat Specifies whether the VET first stage requested the full-screen data to be<br />

returned in ROW or FIELDS <strong>for</strong>mat.<br />

action Specifies whether the VET first stage requested a CURRENT or NEXT view<br />

of the virtual screen.<br />

application<br />

Indicates whether the application running on the V<strong>OS</strong>T is enabled <strong>for</strong><br />

dynamic remapping of PF and PA keys using the NCCF SET command. If<br />

it does, an application name is included in this message variable. If the<br />

application is null (''), the application running on the V<strong>OS</strong>T does not allow<br />

remapping of PF and PA keys, so PF and PA keys can be used as action<br />

keys on VET subsequent stages.<br />

In most cases, application is null or the same as the command name.<br />

However, application can be different from the ATTACH command in the<br />

following situations:<br />

v ATTACH commands that are CLISTs<br />

v ATTACH commands that are synonyms <strong>for</strong> other commands<br />

v ATTACH commands that attach non-<strong>IBM</strong> applications<br />

attachname<br />

Specifies the name of the V<strong>OS</strong>T that has its data returned. This is either the<br />

NAME specified on the ATTACH command when the V<strong>OS</strong>T was created<br />

or the default name when no NAME is specified on the ATTACH.<br />

The lines following the BNH150I message header line depend on whether the<br />

message results from VET ROWS or VET FIELDS.

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

Saved successfully!

Ooh no, something went wrong!