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
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
<strong>NetView</strong> Pipelines Device Drivers<br />
300 <strong>Programming</strong>: <strong>Pipes</strong><br />
/* READ MESSAGES FROM THE SAFE, MANIPULATE THEM AND DISPLAY */<br />
/****************************************************************/<br />
’PIPE SAFE HOLDMSG ’, /* read msgs from safe */<br />
’| SEPARATE ’, /* separate to single lines */<br />
’| LOCATE \ACTIV\ ’, /* select lines with ’activ’*/<br />
’| CONSOLE’ /* display to terminal */<br />
/****************************************************************/<br />
/****************************************************************/<br />
/* WRITE RETURN CODE INFORMATION TO TERMINAL AND EXIT CLIST */<br />
/****************************************************************/<br />
SAY ’RETURN CODE =’RC<br />
EXIT<br />
Output from PIPSAFEA follows:<br />
NCCF NETVIEW CNM19 OPER6 02/01/10 18:00:00<br />
* CNM19 PIPSAFEA<br />
CNM19<br />
IST097I DISPLAY ACCEPTED<br />
IST350I DISPLAY TYPE = CDRMS<br />
IST089I A19CDRMS TYPE = CDRM SEGMENT , ACTIV<br />
IST482I A19M ACTIV, SA 19, EL 1, NETID = NETA<br />
IST482I A09M NEVAC, SA 9, EL 1, NETID = NETA<br />
IST482I A29M NEVAC, SA 29, EL 1, NETID = NETA<br />
IST482I A69M NEVAC, SA 69, EL 1, NETID = NETA<br />
IST482I A99M NEVAC, SA 99, EL 1, NETID = NETA<br />
IST482I B18M NEVAC, SA N/A, EL N/A, NETID = NETB<br />
IST482I B20M NEVAC, SA N/A, EL N/A, NETID = NETB<br />
IST482I B24M NEVAC, SA N/A, EL N/A, NETID = NETB<br />
IST482I B52M NEVAC, SA N/A, EL N/A, NETID = NETB<br />
IST482I C01M NEVAC, SA N/A, EL N/A, NETID = NETC<br />
IST482I C02M NEVAC, SA N/A, EL N/A, NETID = NETC<br />
IST482I C11M NEVAC, SA N/A, EL N/A, NETID = NETC<br />
IST482I D09M NEVAC, SA N/A, EL N/A, NETID = NETD<br />
IST314I END<br />
’ CNM19 IST089I A19CDRMS TYPE = CDRM SEGMENT , ACTIV<br />
’ CNM19 IST482I A19M ACTIV, SA 19, EL 1, NETID = NETA<br />
C CNM19 RETURN CODE = 0<br />
Processing steps <strong>for</strong> first pipeline:<br />
1. The NETVIEW stage processes the display of the remote domain in<strong>for</strong>mation,<br />
however instead of displaying the messages, they are placed in the pipeline.<br />
2. The CORRWAIT stage allows 10 second intervals between each message<br />
returning to the pipeline. If the 10 second duration is exceeded, no more<br />
messages are placed in the pipeline.<br />
3. The CONSOLE stage reads the messages from the pipeline and displays them.<br />
4. The SAFE stage reads the messages from the pipeline, and writes them to a<br />
message queue named HOLDMSG.<br />
Processing steps <strong>for</strong> second pipeline:<br />
1. The SAFE stage reads the messages, which is one MLWTO, from the queue<br />
named HOLDMSG and writes them to the pipeline.<br />
2. The SEPARATE stage breaks the MLWTO into single-line messages.<br />
3. The LOCATE stage selects messages containing the text string 'ACTIV'.<br />
4. The CONSOLE stage reads the messages from the pipeline and displays them<br />
on the screen.