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.

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

Searching <strong>for</strong> APARs and PTFs<br />

The PIPE command can be used to search <strong>for</strong> up to five authorized program<br />

analysis reports (APARs) or program temporary fixes (PTFs) on the host <strong>NetView</strong><br />

system, as shown in the following command procedure:<br />

/* Sample REXX command list Named: NVMAINT */<br />

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

/* */<br />

/* Be careful when searching <strong>for</strong> an APAR/PTF that has been */<br />

/* superseded by a different APAR/PTF. */<br />

/* */<br />

/* Syntax is: NVMAINT apar1 ptf2 apar3 ptf4 apar5 */<br />

/* */<br />

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

ARG fix.1 fix.2 fix.3 fix.4 fix.5<br />

IF fix.1 = ’’ THEN<br />

DO<br />

SAY ’Please supply an APAR or PTF, <strong>for</strong> example: NVMAINT UY86627’<br />

EXIT<br />

END<br />

srchtxt = ’<br />

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

/* Loop through passed arguments to set up search string. */<br />

/* Will search <strong>for</strong> APAR/PTF in columns 43-49 of DISPMOD output */<br />

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

DOi=1to5<br />

IF fix.i ¬= ’’ then<br />

srchtxt = srchtxt || ’ 43.7 \’fix.i’\’<br />

END<br />

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

/* SEParate DISPMOD MLWTO output into single lines, */<br />

/* LOCate APARs/PTFs supplied as arguments */<br />

/* COLlect the matched lines into a single MLWTO */<br />

/* Display to the CONSole ONLY */<br />

/* (do not put into <strong>NetView</strong> log or automate) */<br />

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

’PIPE NETV DISPMOD ALL ALL’,<br />

’| SEP’,<br />

’| LOC ’ srchtxt,<br />

’| COL’,<br />

’| CONS ONLY’<br />

EXIT<br />

Figure 29. Searching <strong>for</strong> APARs or PTFs with a PIPE command<br />

Displaying Task In<strong>for</strong>mation Summary<br />

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

An operator can create a summary of in<strong>for</strong>mation <strong>for</strong> a task by combining PIPE<br />

commands within a command procedure. This example shows how to create a<br />

summary <strong>for</strong> the DSIGDS task:<br />

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

/* Sample REXX command list Named: GDSSUM */<br />

/* Display a summary of in<strong>for</strong>mation <strong>for</strong> the DSIGDS task */<br />

/* */<br />

/* GDSSUM will display <strong>for</strong> the task: */<br />

/* 1) DSIGDS status, active or not active (from LIST DSIGDS) */<br />

/* */<br />

/* In addition, if the task is active, GDSSUM will display: */<br />

/* 2) which <strong>NetView</strong> proc has the DSIGDS interface with VTAM */<br />

/* (from DIS DSIGDS) */<br />

/* 3) DSRB usage <strong>for</strong> DSIGDS (from DSRBS DSIGDS). */<br />

/* 4) storage, CPU usage and buffer queue <strong>for</strong> DSIGDS (from */<br />

/* TASKUTIL DSIGDS) */

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

Saved successfully!

Ooh no, something went wrong!