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.

PIPE NLOCATE<br />

Syntax<br />

NLOCATE:<br />

Synonyms<br />

NLOCATE ▼ /string/<br />

position.length BLANK<br />

NULL<br />

Stage Name Synonym<br />

NLOCATE NLOC<br />

Command Description<br />

The NLOCATE stage discards messages from the primary output stream that<br />

match a specified delimited character string. Messages that do not contain the<br />

character string are passed to the primary output stream. Messages that contain the<br />

character string are passed to the secondary output stream, if connected.<br />

Streams<br />

NLOCATE examines each record <strong>for</strong> a match to the delimited string. A position<br />

and length can be supplied to limit the search to a particular column range. If the<br />

delimited string is longer than the length specified on the NLOCATE stage,<br />

matches never occur, and all messages are passed to the primary output stream.<br />

If the input message is a multiline message, all message lines are examined <strong>for</strong> the<br />

string specified. The entire multiline message is selected and passed to the<br />

secondary output stream when any line of the message text matches the string<br />

specification.<br />

A message is considered a match if any of the specified strings are located within<br />

it.<br />

Stream Type Number Supported<br />

Input 1<br />

Output 2<br />

Termination Conditions<br />

NLOCATE terminates when the input stream or both output streams are<br />

disconnected.<br />

Operand Descriptions<br />

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

Chapter 2. Pipeline Stages and Syntax 171

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

Saved successfully!

Ooh no, something went wrong!