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.

Appendix. Additional <strong>NetView</strong> Pipeline Examples<br />

This appendix documents general-use programming interface, associated guidance<br />

in<strong>for</strong>mation, and contains examples that show how stages can be combined<br />

effectively.<br />

Displaying Part of a Lengthy Automated Message<br />

Displaying a small part of a long automated message, while continuing to preserve<br />

the DOM criteria, can be done using a PIPE command.<br />

An example might be a tape mount request message, IEF290E, which can be<br />

automated to display at the <strong>NetView</strong> operator's terminal. Only the first few lines<br />

might be of interest.<br />

In this example, a job called BLDTAPE that requested a tape mount was submitted.<br />

The panel below shows the message as it is displayed be<strong>for</strong>e any manipulation is<br />

per<strong>for</strong>med to decrease its length and content. Note the long list of available<br />

devices in the message.<br />

NCCF NETVIEW CNM19 OPER6 03/20/10 14:00:00<br />

13:20 17:10 * CNM19 MVS S BLDTAPE " CNM19 IEF290E BLDTAPE BLDTAPE<br />

SYSUT2 NEEDS 1 UNIT(S) FOR<br />

VOLUME VSAM01<br />

OFFLINE NOT ACCESSIBLE<br />

D= D= 505, 506, 507, 508, 509<br />

D= D= 50A, 50B, 50C, 50D, 50E<br />

D= D= 50F, 516, 517, 518, 519<br />

D= D= 51A, 51B, 51C, 51D, 51E<br />

D= D= 51F, 520, 521, 522, 523<br />

D= D= 524, 525, 526, 527, 528<br />

D= D= 529, 52A, 52B, 52C, 52D<br />

D= D= 52E, 52F, 530, 531, 532<br />

D= D= 533, 534, 535, 536, 537<br />

D= D= 538, 539, 53A, 53B, 53C<br />

D= D= 53D, 53E, 53F, 540, 541<br />

D= D= 542, 543, 544, 545, 546<br />

D= D= 547, 548, 549, 54A, 54B<br />

D= D= 551, 552, 553, 554, 555<br />

D= D= 556, 557, 558, 559, 55A<br />

D= D= 55B, 55C, 55D, 55E, 55F<br />

D= D= 560, 561, 562, 563, 564<br />

??? ***<br />

Figure 25. Job BLDTAPE Example<br />

The message is automated through the following automation table entry, which<br />

routes a command list named PIPEMSG to OPER6.<br />

IF MSGID = ’IEF290E’ .<br />

THEN EXEC(ROUTE(ONE OPER6) CMD(’PIPEMSG’));<br />

The PIPEMSG command list shown here uses the PIPE command to reduce the<br />

message to two lines be<strong>for</strong>e displaying. The stage named SAFE reads the message<br />

buffers which were automated. The message read is an MLWTO. The second stage,<br />

SEPARATE, breaks the MLWTO into individual lines. The TAKE stage selects the<br />

first 2 lines, while discarding other messages from the pipeline. The last stage,<br />

CONSOLE, displays the pipeline contents to the operator's console.<br />

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

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

Saved successfully!

Ooh no, something went wrong!