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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

PIPE COLLECT<br />

Syntax<br />

COLLECT:<br />

►<br />

Synonyms<br />

COLLECT<br />

MAX<br />

number FREEFORM<br />

ASBEFORE<br />

BREAK ONCHANGE pos.len<br />

AT<br />

BREAK /string/<br />

AFTER pos.len NOT BLANK<br />

BEFORE NULL<br />

Stage Name Synonym<br />

COLLECT COL<br />

Stage Operands Synonym<br />

ASBEFORE ASB4<br />

FREEFORM FF<br />

PIPE COLLECT<br />

Command Description<br />

The COLLECT stage creates a multiline message, or messages, from the input<br />

messages. The attributes of the output are inherited from the first line collected <strong>for</strong><br />

that message.<br />

If a secondary input stream is defined <strong>for</strong> the COLLECT stage:<br />

v COLLECT reads input from the secondary input stream until it becomes<br />

disconnected. After the disconnect, it reads from the primary input stream.<br />

v COLLECT uses all lines read from the secondary input stream as label lines <strong>for</strong><br />

the produced multiline messages.<br />

Note: COLLECT accepts any number of lines on the secondary input stream to<br />

be used as label lines. However, <strong>NetView</strong> presentation services recognizes<br />

only the first six lines as label lines. The remainder are treated as data<br />

lines.<br />

v Unless FREEFORM is specified, all lines, except the last, read from the primary<br />

input stream os used by COLLECT as data lines, regardless of their current<br />

state, in the produced multiline message. The last line received on the primary<br />

input stream is used as an end line.<br />

If a secondary input stream is not defined <strong>for</strong> the COLLECT state and FREEFORM<br />

is specified:<br />

v The line type is not validated or modified <strong>for</strong> any line.<br />

Chapter 2. Pipeline Stages and Syntax 39<br />

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

Saved successfully!

Ooh no, something went wrong!