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

Syntax<br />

CHOP:<br />

CHOP<br />

width<br />

column<br />

0 BEFORE<br />

ANYof /string/<br />

offset AFTER NOT STRing<br />

Command Description<br />

The CHOP stage truncates lines after a specified column, character, or string.<br />

Streams<br />

The data kept by CHOP is passed to the primary output stream. The data<br />

discarded by CHOP is passed to the secondary output stream, if connected.<br />

Stream Type Number Supported<br />

Input 1<br />

Output 2<br />

Termination Conditions<br />

CHOP terminates when the input stream or both output streams disconnect.<br />

Operand Descriptions<br />

PIPE CHOP<br />

AFTER<br />

Specifies that the offset refers to the number of positions after the end of the<br />

matching string or character.<br />

ANYof<br />

Specifies that CHOP searches <strong>for</strong> the first occurrence of any character in<br />

/string/.<br />

BEFORE<br />

Specifies that the offset refers to the number of positions be<strong>for</strong>e the beginning<br />

of the matching string or character. This is the default value.<br />

column<br />

The column after which truncation is to occur.<br />

NOT<br />

Specifies that truncation is relative to the first character or string that does not<br />

match the specified target.<br />

offset<br />

The truncation column relative to the beginning or end of the matching string<br />

or character. This can be a negative value. The default value is zero.<br />

STRing<br />

Specifies that CHOP searches <strong>for</strong> the first exact occurrence of /string/.<br />

Chapter 2. Pipeline Stages and Syntax 37

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

Saved successfully!

Ooh no, something went wrong!