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

Operand Descriptions<br />

Usage Notes<br />

Examples<br />

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

ALL|FIRST|LAST<br />

This keyword affects processing only <strong>for</strong> MLWTOs. Specifies whether<br />

comparisons are done on all, the first, or last line of multiline messages. The<br />

default is ALL.<br />

position.length<br />

Specifies the character position where searching begins in each message and<br />

the length of the search. If you specify a length of *, the remainder of the<br />

message is searched. If you do not specify a position.length, the entire message<br />

is searched. You can specify the letter S <strong>for</strong> the length if the specification is<br />

followed by a delimited string. The LOCATE stage replaces the letter with the<br />

length of that delimited string.<br />

/string/<br />

Specifies the character string <strong>for</strong> which to search. The first nonblank character<br />

encountered after the stage name or position.length is the delimiter which<br />

establishes the boundary of the text string used by the stage. The delimited<br />

string ends when the same character is encountered a second time.<br />

BLANK<br />

Specifies that the character string <strong>for</strong> which to search contains only blanks. The<br />

search occurs in the range specified by the position.length parameter, but if the<br />

data contains only blanks, a match is recognized regardless of the length<br />

specified.<br />

NULL<br />

Specifies that the stage is to search <strong>for</strong> no data whatsoever, that is, null data<br />

(not even blanks). This means that a match is recognized only when the data is<br />

shorter than the number specified <strong>for</strong> position in the position.length parameter.<br />

v LOCATE cannot be the first stage.<br />

v You can specify the position.length and /string/ pair up to 40 times.<br />

Example: Locating Messages by Content<br />

To issue the <strong>NetView</strong> command LIST STATUS=TASKS, trap the resulting messages,<br />

keep only the messages containing the phrase NOT ACTIVE in positions 55<br />

through 64, and display them, enter:<br />

PIPE NETVIEW LIST STATUS=TASKS<br />

| LOCATE 55.10 /NOT ACTIVE/<br />

| CONSOLE

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

Saved successfully!

Ooh no, something went wrong!