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 NLOCATE<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 NLOCATE stage replaces the letter with<br />

the length of that delimited string.<br />

/string/<br />

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

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

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

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

Usage Notes<br />

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

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

Examples<br />

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

Example: Discarding Messages by Content<br />

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

discard messages containing the phrase NOT ACTIVE in positions 55 through 64,<br />

and display the remaining messages, enter:<br />

PIPE NETVIEW LIST STATUS=TASKS<br />

| NLOCATE 55.10 /NOT ACTIVE/<br />

| CONSOLE

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

Saved successfully!

Ooh no, something went wrong!