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.

write-type<br />

The write-type is either WRITE or ERASE-WRITE. Write-type indicates the<br />

action taken by the application running on the V<strong>OS</strong>T when updating the<br />

panel. WRITE indicates that changes were made to the panel, but the panel<br />

was not totally rewritten. ERASE-WRITE indicates that the panel was<br />

erased and rewritten.<br />

row.col The starting row and column of the options. This is also the current cursor<br />

position on the virtual screen.<br />

options Can be BEEP, LOCK, or both. Options indicates whether the terminal beep<br />

is sounded or the panel is locked from input.<br />

Reference: For more in<strong>for</strong>mation about 3270 data stream attributes, refer to the<br />

3270 In<strong>for</strong>mation Display System library.<br />

For example, if you use the following code in your full-screen automation<br />

application:<br />

ATTACH NPDA<br />

PIPE (NAME BADCOM)<br />

|VET NEXT FIELDS<br />

...<br />

Stages to process returned panel<br />

...<br />

NETVIEW VET /BAD COMMAND/<br />

PIPE (NAME GETPANEL)<br />

|VET NEXT FIELDS<br />

|CONSOLE<br />

A V<strong>OS</strong>T starts running NPDA. BAD COMMAND is entered on the command line.<br />

Because BAD COMMAND is not a valid command, NPDA returns an error. VET NEXT<br />

FIELDS returns only those fields that have changed. In this example, the following<br />

text is displayed on the console:<br />

BNH150I FIELDS/NEXT OUTPUT FOR ’NPDA’ RECEIVED FROM NPDA<br />

WRITE 24.8 BEEP<br />

22.1 FA IN % BNJ905I INVALID COMMAND ENTERED OR INCORRECT OPERANDS<br />

23.1 FA IN %<br />

23.80 FA IH % CMD==><br />

24.8 FI IH % BAD COMMAND<br />

Figure 20. Example Screen <strong>for</strong> VET NEXT FIELDS<br />

Full-Screen Automation<br />

The BNH150I message header line indicates that the message results from VET<br />

NEXT FIELDS from a V<strong>OS</strong>T running NPDA. WRITE 24.8 BEEP shows that the<br />

panel was updated without first being erased and that the 3270 data stream BEEP<br />

command was issued. The next four messages show the fields that were changed<br />

by NPDA. The field beginning at row 22 column 1 shows the message that was<br />

displayed on the virtual screen as a result of the command. The other fields show<br />

the changed fields resulting from VET /BAD COMMAND/.<br />

The following example shows a BNH150I message after an ATTACH command<br />

with the COLOR option. Note that the Cz and Ha in<strong>for</strong>mation is included<br />

indicating color and highlighting <strong>for</strong> each field:<br />

* NTV7E TOM ATTACH (ACTION=’PIPE VET CURRENT FIELDS|CONS’,COLOR) HELP<br />

* NTV7E TOM PIPE VET CURRENT FIELDS|CONS<br />

’ NTV7E TOM<br />

Chapter 5. Full-Screen Automation 327

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

Saved successfully!

Ooh no, something went wrong!