CHOP stage v1.0 |
Pipelines v1.9 |
Purpose, Operands, Streams used, Usage notes, Examples, See also |
Syntax |
_80_____
>>__CHOP__ _|________|______________________________________________________ __________><
| |_column_| |
| _BEFORE_ |
|_ ______ __|________|__ _____ __ _________ __ _charrange_______ _|
|_disp_| |_AFTER__| |_NOT_| |_ANYCase_| |_STRing_ _string_|
|_ANYof__|
Purpose |
Use the CHOP stage to truncate records selectively. CHOP reads records from its primary input stream, truncates them at the column specified and writes the truncated records to its primary output stream. If its secondary output stream is connected, CHOP writes the truncated portion of each record to its secondary output stream. If you do not specify an operand CHOP truncates records after column 80.
Records are truncated relative to occurrences of a specified target. The target can be a range of characters, a character string or a list of characters. You can specify that the records be truncated before or after the specified target.
Operands |
Streams used |
The following streams are used by the CHOP
stage:
Stream
|
Action |
|
|
Primary input
stream |
CHOP reads records from its primary input
stream. |
Primary output
stream |
After truncating the records read from the primary input stream as
specified, CHOP writes the resulting records to its primary output stream. |
Secondary output
stream |
If its
secondary output stream is connected, CHOP writes the truncated portion of
each record to its secondary output stream. |
Usage notes |
1) |
CHOP does not delay the records. |
2) |
If the CHOP stage discovers that all of
its output streams are not connected, the CHOP stage ends. |
3) |
If the column position at which to
truncate is positioned before the first column of an input record, CHOP
writes a null record to its primary output stream. If its secondary output
stream is connected, the unmodified input record is written to the secondary
output stream, otherwise the input record is discarded. |
4) |
CHOP verifies that its secondary input
stream is not connected and then begins execution. |
Examples |
See also |
Reference the following links for additional information:
JOIN, PAD, SPLIT, STRIP, SPECS
|