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

Syntax<br />

JOINCONT:<br />

JOINCONT<br />

NOT<br />

TRAILING<br />

LEADING<br />

▼ /string/<br />

Command Description<br />

The PIPE JOINCONT stage joins consecutive messages in the stream when a match<br />

to a search string is found. A message is considered in its entirety and it can<br />

include blanks. For instance, an 80-byte record that is read from a file into the<br />

pipeline can contain trailing blanks or sequence numbers, which might cause a<br />

compare of a delimited string to the trailing part of the message to result in no<br />

match. You can use the STRIP stage to remove unwanted blanks or other<br />

characters be<strong>for</strong>e you use the JOINCONT stage.<br />

Streams<br />

Stream Type Number Supported<br />

Input 1<br />

Output 1<br />

Termination Conditions<br />

JOINCONT terminates when the input stream or the output stream disconnects.<br />

Operand Descriptions<br />

PIPE JOINCONT<br />

LEADING<br />

Specifies that if there is a match to the comparison string at the beginning of<br />

the message, that message is appended to the previous message.<br />

NOT<br />

Specifies that the absence of the specified strings can cause lines to be joined.<br />

/string/<br />

Specifies the character string as one of the following strings:<br />

v Comparison string<br />

v Substitution string<br />

When one delimited string is specified, it is treated as a comparison string. If a<br />

message contains a match to the string, the string is removed from the message<br />

be<strong>for</strong>e it is joined.<br />

When more than one delimited string is specified, the last such string is a<br />

substitution string while all others are comparison strings. When a message<br />

contains a match to a comparison string, in the appropriate leading or trailing<br />

position, the string that matches the search string is removed from the message<br />

and replaced by the substitution string between the messages being joined.<br />

Chapter 2. Pipeline Stages and Syntax 147

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

Saved successfully!

Ooh no, something went wrong!