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.

*******************************************************************/<br />

/* Issue a LIST DSIGDS command. Select the first returned message */<br />

/* which contains activity status in<strong>for</strong>mation. Store the message */<br />

/* in both a safe named GDSSAFE and a variable named STATMSG. */<br />

’PIPE NETV LIST DSIGDS’,<br />

’| TAKE 1’,<br />

’| SAFE GDSSAFE’,<br />

’| VAR STATMSG’<br />

/* Parse the variable STATMSG so that the variable named ACTSTAT */<br />

/* will contain either the word ’ACTIVE’ or the word ’NOT’ */<br />

/* reflecting the status of the task. */<br />

PARSE VAR STATMSG . ’STATUS:’ ACTSTAT .<br />

IF ACTSTAT ¬= ’NOT’ THEN<br />

DO;<br />

END;<br />

/* Status = ACTIVE */<br />

/* Issue the DIS DSIGDS command and allow sufficient time <strong>for</strong> */<br />

/* asynchronous messages to return from VTAM. Break the */<br />

/* resulting MLWTO into single-line messages. Locate the */<br />

/* message containing IST271 which will identify the <strong>NetView</strong> */<br />

/* proc that has the use of the DSIGDS VTAM APPL. Append */<br />

/* the message to the contents of the safe. */<br />

’PIPE NETV DIS DSIGDS’,<br />

’ | CORR 2’,<br />

’ | SEP’,<br />

’ | LOC 1.7 \IST271\’,<br />

’ | SAFE GDSSAFE APPEND’<br />

/* Issue the DSRBS DSIDGS command and break the resulting */<br />

/* MLWTO into single-line messages. Discard the first 2 */<br />

/* messages. Keep other messages up to and including the */<br />

/* message containing the word ’TOTAL’. Append the messages */<br />

/* to the contents of the safe. */<br />

’PIPE NETV DSRBS DSIGDS’,<br />

’ | SEP’,<br />

’ | DROP 2’,<br />

’ | T<strong>OS</strong> 8.13 \TOTAL\’,<br />

’ | SAFE GDSSAFE APPEND’<br />

/* Issue the TASKUTIL command to show the storage, cpu and */<br />

/* buffer queue <strong>for</strong> DSIGDS. Break the resulting MLWTO into */<br />

/* single-line messages. Discard the first message. Keep the */<br />

/* next 3 messages in the pipeline while discarding any that */<br />

/* follow. Add a blank line to the pipeline and finally, */<br />

/* append the messages to the contents of the safe. */<br />

’PIPE NETV TASKUTIL DSIGDS’,<br />

’ | SEP’,<br />

’ | DROP 1’,<br />

’ | TAKE 3’,<br />

’ | LIT \ \’,<br />

’ | SAFE GDSSAFE APPEND’<br />

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

/* Read everything stored in GDSSAFE into the pipeline. */<br />

/* Combine all output into a single MLWTO. Clear the screen and */<br />

/* display to the user. Do not log or automate from the displayed */<br />

/* output. */<br />

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

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

Saved successfully!

Ooh no, something went wrong!