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.

PIPE APPEND<br />

Examples<br />

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

Example: Switch and Send LIST DST Results to Operator<br />

The following switches the DSILOG, waits <strong>for</strong> the completion of the switch, issues<br />

a LIST DST and sends the results of both commands to the operator:<br />

/* Route SWITCH and LIST DST output to operator with attributes*/<br />

’PIPE (NAME APPNXMP)’<br />

’| NETVIEW SWITCH DSILOG,P’, /* Begin the switch */<br />

’| CORRWAIT 30’, /* CORRWAIT several seconds */<br />

’| PRESATTR UND’, /* Underscore SWITCH output only */<br />

’| APPEND’, /* following stages run after wait */<br />

’ || NETV LIST DSILOG’, /* list runs AFTER switch completes*/<br />

’ || WAIT 5’, /* this wait starts AFTER LIST runs*/<br />

’ || PRESATTR REVERSE’, /* reverse-video LIST output */<br />

’| PRESATTR YELLOW’, /* color output of both cmds yellow*/<br />

’| CONSOLE’ /* send command outputs to console */

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

Saved successfully!

Ooh no, something went wrong!