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

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

Notes:<br />

1. The first stage, PPI CNMCOUNT, records the sender's ID as a message<br />

attribute in each message. The attribute is used by the sixth stage, PPI *, to<br />

send the response back to the originator.<br />

2. The EDIT stage in this example can be written with the WRITELINE order to<br />

create a multiline message. Because this example does not assume that the<br />

requestor is another <strong>NetView</strong> system, it cannot assume that the requestor can<br />

handle a multiline response.<br />

Adding the NV option to the PPI send stage, stage 6, adds the appropriate<br />

multiline identifiers to the data be<strong>for</strong>e it is sent to the requestor.<br />

Example: Receiving a Response<br />

In this example a request is sent to a remote PPI receiver running in another<br />

address space. The pipeline then waits <strong>for</strong> a response.<br />

This example assumes that the remote receiver is another <strong>NetView</strong> system. Because<br />

it is another <strong>NetView</strong> system, a multiline response is possible.<br />

/*** issuing a request ********/<br />

address NETVASIS,<br />

’PIPE (NAME PPIOPS)’,<br />

’| PPI OEXXX /egrep "<strong>NetView</strong>" set.log/’, /*sendrequest ’egrep’*/<br />

’| WAIT 180’, /*wait to 3 min <strong>for</strong> resp */<br />

| STEM NVnSET.’ /*store response */<br />

Notes:<br />

1. The wait automatically ends when one message is received. This message can<br />

be a multiline message.<br />

2. Multiline identifiers and line descriptors, if any, are removed when the<br />

multiline response is built by PPI processing.<br />

For additional PPI examples, see the following specifications:<br />

v “PIPE EDIT” on page 76<br />

v Example CNMEALUS in DSICLD<br />

v Example CNMEMSUS in DSICLD<br />

v Sample CNMS1101

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

Saved successfully!

Ooh no, something went wrong!