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

Streams<br />

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

The contents of msgSource is the source of messages to be changed. The contents of<br />

the changeSpecs. stem is the key to the advanced functions. The CHANGE stage<br />

expects the lines in the changeSpecs. stem to be in groups of three, where each<br />

group of lines has the following syntax:<br />

First line::<br />

position.length<br />

Second line::<br />

string1<br />

Third line::<br />

string2<br />

R<br />

I<br />

See “Example: Using CHANGE with parameters from secondary input” on page 36<br />

<strong>for</strong> an example of using a secondary input stream.<br />

Notes:<br />

1. The <strong>for</strong>ward slash characters (/) in the syntax diagrams are <strong>for</strong> illustration. Any<br />

character except alphanumeric characters, parentheses, blanks, nulls, and<br />

national characters (@, #, and $) can be used instead of the slash character to<br />

delimit the strings.<br />

2. Changes are applied in the order in which they are supplied, so some strings<br />

inserted by early changes might be modified by later changes. There is still a<br />

maximum that you can specify <strong>for</strong> the number of changes to any one message;<br />

that maximum is still specified as an argument on the CHANGE stage.<br />

Stream Type Number Supported<br />

Input 2<br />

Output 2<br />

Termination Conditions<br />

The CHANGE stage ends when the primary input stream disconnects or when<br />

both output streams disconnect.<br />

Operand Descriptions<br />

numchg<br />

The maximum number of substitutions to be made in each message. Note that<br />

there can be multiple lines per message. If numchg is not specified, the default<br />

is to change all occurrences in each message.<br />

position.length<br />

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

the length of the search. If you specify a length of *, the remainder of each line

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

Saved successfully!

Ooh no, something went wrong!